Skip to content

Commit e279b4e

Browse files
committed
chore: upgrade husky to v9
1 parent 4892a0c commit e279b4e

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
pnpm pretty-quick --staged
1+
pnpm exec pretty-quick --staged

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"test": "jest",
1111
"lint": "tslint -p tsconfig.json",
1212
"umd": "rollup --config rollup.config.js",
13-
"postinstall": "husky install",
1413
"build-doc": "dumi build",
1514
"publish": "npm publish ./lib --registry=https://registry.npmjs.org",
1615
"publish:alpha": "npm publish ./lib --registry=https://registry.npmjs.org --tag alpha",
17-
"publish:dev": "npm publish ./lib --registry=https://registry.npmjs.org --tag dev"
16+
"publish:dev": "npm publish ./lib --registry=https://registry.npmjs.org --tag dev",
17+
"prepare": "husky"
1818
},
1919
"main": "./cjs/index.js",
2020
"module": "./es/index.js",
@@ -46,7 +46,7 @@
4646
"dumi": "^1.1.54",
4747
"gulp": "^4.0.2",
4848
"gulp-typescript": "^5.0.1",
49-
"husky": "^8.0.3",
49+
"husky": "^9.0.11",
5050
"jest": "^29.7.0",
5151
"jest-environment-jsdom": "^29.7.0",
5252
"prettier": "^2.8.8",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)