standards-cli 1.0.2 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "standards-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "一键初始化前端项目提交规范链路(cz-git + commitlint + husky + lint-staged)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -369,8 +369,8 @@ export async function init(args) {
369
369
  await runHuskyInstall(pm);
370
370
 
371
371
  // 7. 打印成功信息
372
- const hasLintTools = hasLintTools(pkg);
373
- printSuccess(pm, hasLintTools);
372
+ const hasLintToolsInstalled = hasLintTools(pkg);
373
+ printSuccess(pm, hasLintToolsInstalled);
374
374
  } else {
375
375
  printInstallCommand(missingDeps, "pnpm");
376
376
  }
@@ -391,8 +391,8 @@ export async function init(args) {
391
391
  }
392
392
 
393
393
  // 打印成功信息
394
- const hasLintTools = hasLintTools(pkg);
395
- printSuccess(pm, hasLintTools);
394
+ const hasLintToolsInstalled = hasLintTools(pkg);
395
+ printSuccess(pm, hasLintToolsInstalled);
396
396
  }
397
397
 
398
398
  rl.close();
package/src/lib/pm.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  import { exists } from "./fs.js";
3
2
 
4
3
  /**
@@ -60,7 +59,7 @@ export function getExecCommand(pm, command) {
60
59
  case "bun":
61
60
  return `bunx ${command}`;
62
61
  case "yarn":
63
- return `yarn ${command}`;
62
+ return `yarn exec ${command}`;
64
63
  case "npm":
65
64
  return `npx ${command}`;
66
65
  default: