commit-pack 1.1.3 → 1.1.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.
package/bin/index.mjs CHANGED
@@ -163,7 +163,6 @@ try {
163
163
  const scriptPath = path.join(__dirname, '..', 'setup-script', script)
164
164
  execSync(`sh ${scriptPath}`, { stdio: 'inherit', cwd: projectRoot })
165
165
  }
166
- console.log(chalk.green('✅ 文件创建完毕'))
167
166
  } catch (error) {
168
167
  console.error(log.warn('❌ 文件创建出错'), error)
169
168
  }
@@ -171,6 +170,7 @@ try {
171
170
  // 创建或更新脚本
172
171
  if (!packageJson.scripts) {
173
172
  packageJson.scripts = {}
173
+ console.log('🔥 创建或更新脚本...')
174
174
  }
175
175
 
176
176
  let modified = false
@@ -216,6 +216,6 @@ if (modified) {
216
216
 
217
217
  // 创建初始化标志文件
218
218
  // fs.writeFileSync(initFlagPath, 'initialized', 'utf8')
219
- console.log(log.success('🎉🎉🎉 完成啦!'))
219
+ console.log(log.success(' 🎉🎉🎉 完成啦!'))
220
220
  console.log('')
221
- console.log('运行 git add 后 | 运行 ${packageManager} run commit 即可')
221
+ console.log(` 运行 git add 后 | 运行 ${packageManager} run commit 即可`)
@@ -13,9 +13,9 @@ export function installWithProgress(dependencies, packageManager, projectRoot) {
13
13
  console.log(chalk.cyan(`⬇️ 开始安装依赖...`))
14
14
 
15
15
  const bar = new cliProgress.SingleBar({
16
- format: `${chalk.green('📦 安装中')} {bar} {percentage}% | {value}/{total} | 正在安装: {dep}`,
17
- barCompleteChar: '',
18
- barIncompleteChar: '',
16
+ format: `${chalk.green('📦 安装中')} [{bar}] {percentage}% | {value}/{total} | 正在安装: {dep}`,
17
+ barCompleteChar: '',
18
+ barIncompleteChar: '',
19
19
  hideCursor: true
20
20
  })
21
21
 
@@ -38,11 +38,9 @@ export function installWithProgress(dependencies, packageManager, projectRoot) {
38
38
 
39
39
  bar.update(i + 1, { dep })
40
40
  }
41
-
41
+ bar.update(dependencies.length, { dep: chalk.green('✔️ 完成') })
42
42
  bar.stop()
43
43
  console.log('')
44
- console.log(chalk.green('✅ 所有开发依赖安装完成'))
45
- console.log('')
46
44
  console.log('')
47
45
  } catch (err) {
48
46
  bar.stop()
package/lib/index.mjs CHANGED
@@ -135,7 +135,6 @@ try {
135
135
  cwd: projectRoot
136
136
  });
137
137
  }
138
- console.log(_chalk.default.green('✅ 文件创建完毕'));
139
138
  } catch (error) {
140
139
  console.error(_chalkColor.log.warn('❌ 文件创建出错'), error);
141
140
  }
@@ -143,6 +142,7 @@ try {
143
142
  // 创建或更新脚本
144
143
  if (!packageJson.scripts) {
145
144
  packageJson.scripts = {};
145
+ console.log('🔥 创建或更新脚本...');
146
146
  }
147
147
  let modified = false;
148
148
  if (!packageJson.scripts.lint) {
@@ -184,6 +184,6 @@ if (modified) {
184
184
 
185
185
  // 创建初始化标志文件
186
186
  // fs.writeFileSync(initFlagPath, 'initialized', 'utf8')
187
- console.log(_chalkColor.log.success('🎉🎉🎉 完成啦!'));
187
+ console.log(_chalkColor.log.success(' 🎉🎉🎉 完成啦!'));
188
188
  console.log('');
189
- console.log('运行 git add 后 | 运行 ${packageManager} run commit 即可');
189
+ console.log(` 运行 git add 后 | 运行 ${packageManager} run commit 即可`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-pack",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "A setup package to automatly check project's style and commit configuration",
5
5
  "main": "lib/index.js",
6
6
  "bin": {