Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c44be22

Browse files
committed
Upgrade husky to v9
1 parent 60a0d83 commit c44be22

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npm run pre-commit && git add dist/

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"style:write": "run-p --continue-on-error --aggregate-output format:write lint",
2121
"pre-commit": "run-s style:write test build",
2222
"test": "jest",
23-
"prepare": "husky install"
23+
"prepare": "husky"
2424
},
2525
"jest": {
2626
"preset": "ts-jest",
@@ -57,7 +57,7 @@
5757
"eslint": "^8.51.0",
5858
"eslint-config-prettier": "^9.0.0",
5959
"eslint-plugin-prettier": "^5.0.1",
60-
"husky": "^7.0.0",
60+
"husky": "^9.1.1",
6161
"jest": "^29.7.0",
6262
"npm-run-all": "^4.1.5",
6363
"prettier": "^3.0.3",

0 commit comments

Comments
 (0)