@docubook/create 1.6.9 → 1.7.0

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 +5 -24
  2. package/package.json +1 -1
package/create.js CHANGED
@@ -36,14 +36,14 @@ function updatePostcssConfig(projectPath) {
36
36
 
37
37
  if (fs.existsSync(oldConfigPath)) {
38
38
  fs.renameSync(oldConfigPath, newConfigPath);
39
- console.log(chalk.green("Renamed postcss.config.js to postcss.config.cjs for Bun compatibility."));
39
+ console.log(chalk.yellow("Renamed postcss.config.js to postcss.config.cjs for Bun compatibility."));
40
40
  } else {
41
41
  console.log(chalk.yellow("No postcss.config.js file found. Skipping rename."));
42
42
  }
43
43
  }
44
44
 
45
45
  program
46
- .version("1.6.9")
46
+ .version("1.7.0")
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) => {
@@ -75,7 +75,7 @@ program
75
75
  const projectPath = path.resolve(process.cwd(), projectDirectory);
76
76
  const cloneCommand = `git clone --branch ${branch} ${repo} ${projectPath}`;
77
77
 
78
- const spinner = ora(`Cloning ${chalk.green(branch)} from GitLab...`).start();
78
+ const spinner = ora(`Cloning ${chalk.yellow(branch)} from GitLab...`).start();
79
79
  try {
80
80
  execSync(cloneCommand, { stdio: "inherit" });
81
81
  spinner.succeed(`Docubook project successfully created in ${projectPath}!`);
@@ -88,25 +88,6 @@ program
88
88
  console.log(chalk.yellow("Skipping postcss.config.js rename because Bun is not installed."));
89
89
  }
90
90
 
91
- // const { enter } = await inquirer.prompt([
92
- // {
93
- // type: "confirm",
94
- // name: "enter",
95
- // message: "Install dependencies in the current project directory?",
96
- // default: true,
97
- // },
98
- // ]);
99
-
100
- // if (enter) {
101
- // if (checkBunInstalled()) {
102
- // console.log(chalk.green("\nBun detected. Installing dependencies with Bun..."));
103
- // execSync("bun install", { stdio: "inherit", cwd: projectPath });
104
- // } else {
105
- // console.log(chalk.green("\nInstalling dependencies with npm..."));
106
- // execSync("npm install", { stdio: "inherit", cwd: projectPath });
107
- // }
108
- // }
109
-
110
91
  const packageJsonPath = path.join(projectPath, "package.json");
111
92
  if (fs.existsSync(packageJsonPath)) {
112
93
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
@@ -121,14 +102,14 @@ program
121
102
  if (checkBunInstalled()) {
122
103
  console.log(` ${chalk.green("bun install")}`);
123
104
  } else {
124
- console.log(` ${chalk.green("npm install")}`);
105
+ console.log(` ${chalk.green("npm install or pnpm install or yarn install")}`);
125
106
  }
126
107
  console.log(`3. Start the development server:`);
127
108
 
128
109
  if (checkBunInstalled()) {
129
110
  console.log(` ${chalk.green("bun run dev")}`);
130
111
  } else {
131
- console.log(` ${chalk.green("npm run dev")}`);
112
+ console.log(` ${chalk.green("npm run dev or pnpm run dev or yarn dev")}`);
132
113
  }
133
114
 
134
115
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/create",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {