@docubook/create 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/create.js +3 -3
  2. package/package.json +1 -1
package/create.js CHANGED
@@ -43,7 +43,7 @@ function updatePostcssConfig(projectPath) {
43
43
  }
44
44
 
45
45
  program
46
- .version("1.4.3")
46
+ .version("1.4.4")
47
47
  .description("CLI to create a new Docubook project")
48
48
  .argument("[project-directory]", "Directory to create the new Docubook project")
49
49
  .action(async (projectDirectory) => {
@@ -70,7 +70,7 @@ program
70
70
 
71
71
  updatePostcssConfig(projectPath);
72
72
 
73
- process.chdir(projectPath);
73
+ await new Promise((resolve) => process.chdir(projectPath, resolve));
74
74
  if (checkBunInstalled()) {
75
75
  console.log(chalk.green("\nBun detected. Installing dependencies with Bun..."));
76
76
  execSync("bun install", { cwd: projectPath, stdio: "inherit" });
@@ -87,7 +87,7 @@ program
87
87
 
88
88
  console.log(chalk.magenta("\nNext steps:"));
89
89
  console.log(`1. Navigate to your project directory:`);
90
- console.log(` cd ${projectDirectory}`);
90
+ console.log(` ${chalk.magenta(`cd ${projectDirectory}`)}`);
91
91
  console.log(`2. Start the development server:`);
92
92
 
93
93
  if (checkBunInstalled()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/create",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {