Skip to content

Commit

Permalink
chore: update husky to be invoked by yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
coopernetes committed Jun 8, 2024
1 parent b76f0a1 commit 7fe7f00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1} && npm run lint
yarn commitlint --edit "$HUSKY_GIT_PARAMS"
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,css,md,json,scss} test/**/*.{js,jsx,ts,tsx,json} --config ./.prettierrc",
"g:tsc": "cd $INIT_CWD && tsc --build"
},
"husky": {
"hooks": {
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS"
}
},
"private": true,
"packageManager": "[email protected]",
"bin": {
Expand Down Expand Up @@ -97,7 +102,7 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-standard": "^5.0.0",
"husky": "^9.0.10",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"jsdom-global": "^3.0.2",
"mocha": "^10.3.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ __metadata:
express-rate-limit: "npm:^7.1.5"
express-session: "npm:^1.17.1"
history: "npm:5.3.0"
husky: "npm:^9.0.10"
husky: "npm:^9.0.11"
jsdom: "npm:^24.0.0"
jsdom-global: "npm:^3.0.2"
jsonschema: "npm:^1.4.1"
Expand Down Expand Up @@ -4915,12 +4915,12 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^9.0.10":
version: 9.0.10
resolution: "husky@npm:9.0.10"
"husky@npm:^9.0.11":
version: 9.0.11
resolution: "husky@npm:9.0.11"
bin:
husky: bin.mjs
checksum: 10c0/585d95fec151d2e3fba1a8d97c1290dee40b83eb2b8850afae0805e183b3b3ec45bfeef97b2d0c4ae16f1c1bf19788b9129627d9ba02d924c874632207e33b93
checksum: 10c0/2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
languageName: node
linkType: hard

Expand Down

0 comments on commit 7fe7f00

Please sign in to comment.