Skip to content

Commit b4ad9dd

Browse files
committed
Avoid && in lint-staged commands
1 parent f123708 commit b4ad9dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@
2929
"type-check:self": "tsc",
3030
"lint": "eslint",
3131
"lint:fix": "eslint --fix",
32+
"lint:staged": "lint-staged",
3233
"build": "pnpm run -r build",
3334
"preinstall": "node scripts/preinstall.js",
3435
"postinstall": "simple-git-hooks"
3536
},
3637
"simple-git-hooks": {
37-
"pre-commit": "pnpm run type-check && pnpm exec lint-staged"
38+
"pre-commit": "pnpm exec run-s type-check lint:staged"
3839
},
3940
"lint-staged": {
4041
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint"

packages/create-vue-lib/src/template/base/config/package.json.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
<%_ if (config.includeEsLint) { _%>
2121
"lint": "eslint",
2222
"lint:fix": "eslint --fix",
23+
"lint:staged": "lint-staged",
2324
<%_ } _%>
2425
"build": "pnpm run -r build",
2526
"preinstall": "node scripts/preinstall.js",
2627
"postinstall": "simple-git-hooks"
2728
},
2829
<%_ if (config.includeEsLint) { _%>
2930
"simple-git-hooks": {
30-
"pre-commit": "pnpm run type-check && pnpm exec lint-staged"
31+
"pre-commit": "pnpm exec run-s type-check lint:staged"
3132
},
3233
"lint-staged": {
3334
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix"
@@ -51,6 +52,7 @@
5152
"jiti": "^2.4.2",
5253
"lint-staged": "^15.4.3",
5354
<%_ } _%>
55+
"npm-run-all2": "^7.0.2",
5456
"simple-git-hooks": "^2.11.1"
5557
}
5658
}

0 commit comments

Comments
 (0)