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 CHANGED
@@ -131,16 +131,16 @@ if (isGitRepo) {
131
131
  let huskyInitCommand = ''
132
132
  switch (packageManager) {
133
133
  case 'pnpm':
134
- huskyInitCommand = 'pnpm husky install'
134
+ huskyInitCommand = 'pnpm exec husky init'
135
135
  break
136
136
  case 'yarn':
137
- huskyInitCommand = 'yarn husky install'
137
+ huskyInitCommand = 'yarn dlx husky init'
138
138
  break
139
139
  case 'bun':
140
- huskyInitCommand = 'bunx husky install'
140
+ huskyInitCommand = 'bunx husky init'
141
141
  break
142
142
  default:
143
- huskyInitCommand = 'npx husky install'
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 install';
116
+ huskyInitCommand = 'pnpm exec husky init';
117
117
  break;
118
118
  case 'yarn':
119
- huskyInitCommand = 'yarn husky install';
119
+ huskyInitCommand = 'yarn dlx husky init';
120
120
  break;
121
121
  case 'bun':
122
- huskyInitCommand = 'bunx husky install';
122
+ huskyInitCommand = 'bunx husky init';
123
123
  break;
124
124
  default:
125
- huskyInitCommand = 'npx husky install';
125
+ huskyInitCommand = 'npx husky init';
126
126
  break;
127
127
  }
128
128
  console.log(_chalk.default.green(`执行 Husky 初始化命令:${huskyInitCommand}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-pack",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "A setup package to automatly check project's style and commit configuration",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -5,7 +5,6 @@ echo '
5
5
  "jsxSingleQuote": true,
6
6
  "bracketSameLine": true,
7
7
  "semi": false,
8
- "plugins": ["prettier-plugin-tailwindcss"],
9
8
  "tabWidth": 2,
10
9
  "bracketSpacing": true,
11
10
  "trailingComma": "none"