Skip to content

Commit 38925b3

Browse files
authored
ci: upgrade husky version (#1900)
1 parent aedd4fe commit 38925b3

File tree

4 files changed

+17
-63
lines changed

4 files changed

+17
-63
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "$1"

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

package.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"b:umd": "cross-env BUILD_TYPE=UMD rollup -c",
1818
"b:miniprogram": "cross-env BUILD_TYPE=MINI rollup -c",
1919
"b:all": "npm run b:types && cross-env BUILD_TYPE=ALL rollup -c",
20-
"clean": "pnpm -r exec rm -rf dist && pnpm -r exec rm -rf types"
20+
"clean": "pnpm -r exec rm -rf dist && pnpm -r exec rm -rf types",
21+
"prepare": "husky install"
2122
},
2223
"devDependencies": {
2324
"@commitlint/cli": "^11.0.0",
@@ -42,7 +43,6 @@
4243
"eslint-config-prettier": "^8.8.0",
4344
"eslint-plugin-prettier": "^5.0.0",
4445
"floss": "^5.0.1",
45-
"husky": "^4.3.7",
4646
"lint-staged": "^10.5.3",
4747
"nyc": "^15.1.0",
4848
"prettier": "^3.0.0",
@@ -52,13 +52,8 @@
5252
"rollup-plugin-serve": "^1.1.0",
5353
"rollup-plugin-swc3": "^0.10.1",
5454
"ts-node": "^10",
55-
"typescript": "^5.1.6"
56-
},
57-
"husky": {
58-
"hooks": {
59-
"pre-commit": "lint-staged",
60-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
61-
}
55+
"typescript": "^5.1.6",
56+
"husky": "^8.0.0"
6257
},
6358
"lint-staged": {
6459
"*.{ts}": [

pnpm-lock.yaml

+5-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)