Skip to content

Commit 9c3ca20

Browse files
authored
chore: update husky hooks (#419)
1 parent 012dae2 commit 9c3ca20

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

.husky/commit-msg

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

.husky/pre-commit

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

package-lock.json

+7-6
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
@@ -34,7 +34,7 @@
3434
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
3535
"pretest": "npm run lint",
3636
"test": "npm run test:coverage",
37-
"prepare": "husky install && npm run build",
37+
"prepare": "husky && npm run build",
3838
"release": "standard-version"
3939
},
4040
"files": [
@@ -76,7 +76,7 @@
7676
"eslint": "^8.57.0",
7777
"eslint-config-prettier": "^9.1.0",
7878
"eslint-plugin-import": "^2.29.1",
79-
"husky": "^8.0.3",
79+
"husky": "^9.1.3",
8080
"jest": "^29.7.0",
8181
"lint-staged": "^15.2.7",
8282
"memfs": "^4.9.3",

0 commit comments

Comments
 (0)