@docubook/create 1.4.2 → 1.4.3
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.
- package/create.js +4 -3
- 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.
|
|
46
|
+
.version("1.4.3")
|
|
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,6 +70,7 @@ program
|
|
|
70
70
|
|
|
71
71
|
updatePostcssConfig(projectPath);
|
|
72
72
|
|
|
73
|
+
process.chdir(projectPath);
|
|
73
74
|
if (checkBunInstalled()) {
|
|
74
75
|
console.log(chalk.green("\nBun detected. Installing dependencies with Bun..."));
|
|
75
76
|
execSync("bun install", { cwd: projectPath, stdio: "inherit" });
|
|
@@ -90,9 +91,9 @@ program
|
|
|
90
91
|
console.log(`2. Start the development server:`);
|
|
91
92
|
|
|
92
93
|
if (checkBunInstalled()) {
|
|
93
|
-
console.log(` bun run dev`);
|
|
94
|
+
console.log(` ${chalk.magenta("bun run dev")}`);
|
|
94
95
|
} else {
|
|
95
|
-
console.log(` npm run dev`);
|
|
96
|
+
console.log(` ${chalk.magenta("npm run dev")}`);
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
process.exit(0);
|