@4399ywkf/cli 0.0.5 → 0.0.7

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/bin/cli.js +8 -6
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -52,9 +52,11 @@ function printFinalInstructions(projectName) {
52
52
  chalk.cyan("接下来的步骤:"),
53
53
  chalk.gray(" 1. 进入项目目录"),
54
54
  chalk.white(` cd ${projectName}`),
55
- chalk.gray(" 2. 安装依赖"),
55
+ chalk.gray(" 2. 切换Node版本"),
56
+ chalk.white(" nvm use"),
57
+ chalk.gray(" 3. 安装依赖"),
56
58
  chalk.white(" pnpm i"),
57
- chalk.gray(" 3. 启动项目"),
59
+ chalk.gray(" 4. 启动项目"),
58
60
  chalk.white(" pnpm start"),
59
61
  "",
60
62
  chalk.magenta("🚀 开始你的开发之旅吧!"),
@@ -92,10 +94,10 @@ async function updateEnvTemplate(filePath, config) {
92
94
 
93
95
  // 替换模板变量
94
96
  const replacements = {
95
- "{{APP_CNAME}}": `"${config.appCname}"`,
96
- "{{APP_NAME}}": `"${config.appName}"`,
97
- "{{SENTRY_ENABLED}}": `"${config.sentryEnabled ? "true" : "false"}"`,
98
- "{{SENTRY_DSN}}": `"${config.sentryDsn}"`,
97
+ "{{APP_CNAME}}": `${config.appCname}`,
98
+ "{{APP_NAME}}": `${config.appName}`,
99
+ "{{SENTRY_ENABLED}}": `${config.sentryEnabled ? "true" : "false"}`,
100
+ "{{SENTRY_DSN}}": `${config.sentryDsn}`,
99
101
  };
100
102
 
101
103
  // 执行替换
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "运维开发部脚手架",
5
5
  "main": "index.js",
6
6
  "bin": {