commit-pack 1.0.13 → 1.0.15
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 +4 -4
- package/lib/index.mjs +4 -4
- package/package.json +1 -1
- package/setup-script/prettier.sh +0 -1
package/bin/index.mjs
CHANGED
|
@@ -131,16 +131,16 @@ if (isGitRepo) {
|
|
|
131
131
|
let huskyInitCommand = ''
|
|
132
132
|
switch (packageManager) {
|
|
133
133
|
case 'pnpm':
|
|
134
|
-
huskyInitCommand = 'pnpm husky
|
|
134
|
+
huskyInitCommand = 'pnpm exec husky init'
|
|
135
135
|
break
|
|
136
136
|
case 'yarn':
|
|
137
|
-
huskyInitCommand = 'yarn husky
|
|
137
|
+
huskyInitCommand = 'yarn dlx husky init'
|
|
138
138
|
break
|
|
139
139
|
case 'bun':
|
|
140
|
-
huskyInitCommand = 'bunx husky
|
|
140
|
+
huskyInitCommand = 'bunx husky init'
|
|
141
141
|
break
|
|
142
142
|
default:
|
|
143
|
-
huskyInitCommand = 'npx husky
|
|
143
|
+
huskyInitCommand = 'npx husky init'
|
|
144
144
|
break
|
|
145
145
|
}
|
|
146
146
|
|
package/lib/index.mjs
CHANGED
|
@@ -113,16 +113,16 @@ if (isGitRepo) {
|
|
|
113
113
|
let huskyInitCommand = '';
|
|
114
114
|
switch (packageManager) {
|
|
115
115
|
case 'pnpm':
|
|
116
|
-
huskyInitCommand = 'pnpm husky
|
|
116
|
+
huskyInitCommand = 'pnpm exec husky init';
|
|
117
117
|
break;
|
|
118
118
|
case 'yarn':
|
|
119
|
-
huskyInitCommand = 'yarn husky
|
|
119
|
+
huskyInitCommand = 'yarn dlx husky init';
|
|
120
120
|
break;
|
|
121
121
|
case 'bun':
|
|
122
|
-
huskyInitCommand = 'bunx husky
|
|
122
|
+
huskyInitCommand = 'bunx husky init';
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
125
|
-
huskyInitCommand = 'npx husky
|
|
125
|
+
huskyInitCommand = 'npx husky init';
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
128
|
console.log(_chalk.default.green(`执行 Husky 初始化命令:${huskyInitCommand}`));
|
package/package.json
CHANGED