Skip to content

Commit 7fe7f00

Browse files
committed
chore: update husky to be invoked by yarn
1 parent b76f0a1 commit 7fe7f00

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.husky/commit-msg

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

4-
npx --no -- commitlint --edit ${1} && npm run lint
4+
yarn commitlint --edit "$HUSKY_GIT_PARAMS"

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,css,md,json,scss} test/**/*.{js,jsx,ts,tsx,json} --config ./.prettierrc",
2222
"g:tsc": "cd $INIT_CWD && tsc --build"
2323
},
24+
"husky": {
25+
"hooks": {
26+
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS"
27+
}
28+
},
2429
"private": true,
2530
"packageManager": "[email protected]",
2631
"bin": {
@@ -97,7 +102,7 @@
97102
"eslint-plugin-prettier": "^5.0.0",
98103
"eslint-plugin-react": "^7.21.5",
99104
"eslint-plugin-standard": "^5.0.0",
100-
"husky": "^9.0.10",
105+
"husky": "^9.0.11",
101106
"jsdom": "^24.0.0",
102107
"jsdom-global": "^3.0.2",
103108
"mocha": "^10.3.0",

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ __metadata:
897897
express-rate-limit: "npm:^7.1.5"
898898
express-session: "npm:^1.17.1"
899899
history: "npm:5.3.0"
900-
husky: "npm:^9.0.10"
900+
husky: "npm:^9.0.11"
901901
jsdom: "npm:^24.0.0"
902902
jsdom-global: "npm:^3.0.2"
903903
jsonschema: "npm:^1.4.1"
@@ -4915,12 +4915,12 @@ __metadata:
49154915
languageName: node
49164916
linkType: hard
49174917

4918-
"husky@npm:^9.0.10":
4919-
version: 9.0.10
4920-
resolution: "husky@npm:9.0.10"
4918+
"husky@npm:^9.0.11":
4919+
version: 9.0.11
4920+
resolution: "husky@npm:9.0.11"
49214921
bin:
49224922
husky: bin.mjs
4923-
checksum: 10c0/585d95fec151d2e3fba1a8d97c1290dee40b83eb2b8850afae0805e183b3b3ec45bfeef97b2d0c4ae16f1c1bf19788b9129627d9ba02d924c874632207e33b93
4923+
checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
49244924
languageName: node
49254925
linkType: hard
49264926

0 commit comments

Comments
 (0)