Skip to content

Commit 26857d5

Browse files
authored
chore: update husky to v9 (#338)
1 parent 553dfe1 commit 26857d5

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.husky/pre-commit

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

package-lock.json

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

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build": "esbuild index.js --bundle --platform=node --alias:git-hooks-list=./git-hooks-list_shim.cjs --outfile=./index.cjs",
4444
"fix": "eslint . --fix && prettier . --write && node cli.js \"package.json\"",
4545
"lint": "eslint . && prettier . \"!**/*.js\" --check && node cli.js \"package.json\" --check",
46-
"prepare": "husky install",
46+
"prepare": "husky",
4747
"prepublishOnly": "npm run build",
4848
"semantic-release": "semantic-release",
4949
"test": "ava && dtslint --localTs node_modules/typescript/lib",
@@ -96,7 +96,7 @@
9696
"eslint-plugin-n": "^17.15.1",
9797
"eslint-plugin-promise": "^7.2.1",
9898
"globals": "^16.0.0",
99-
"husky": "^8.0.1",
99+
"husky": "^9.1.7",
100100
"lint-staged": "^15.4.3",
101101
"ncp": "^2.0.0",
102102
"nyc": "^15.1.0",

0 commit comments

Comments
 (0)