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 +1 -1
- package/src/commands/init.js +4 -4
- package/src/lib/pm.js +1 -2
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -369,8 +369,8 @@ export async function init(args) {
|
|
|
369
369
|
await runHuskyInstall(pm);
|
|
370
370
|
|
|
371
371
|
// 7. 打印成功信息
|
|
372
|
-
const
|
|
373
|
-
printSuccess(pm,
|
|
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
|
|
395
|
-
printSuccess(pm,
|
|
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:
|