Skip to content

Commit 15e574e

Browse files
committed
use updated husky config pattern.
1 parent dca7260 commit 15e574e

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn tsc

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn test

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@
1515
"bundle": "parcel build src/app/index.html -d dist/app --no-source-maps",
1616
"test": "jest",
1717
"test:ci": "jest --runInBand",
18-
"prepublish": "yarn build"
19-
},
20-
"husky": {
21-
"hooks": {
22-
"pre-commit": "yarn tsc",
23-
"pre-push": "yarn test"
24-
}
18+
"prepublish": "yarn build",
19+
"prepare": "husky install"
2520
},
2621
"dependencies": {
2722
"chalk": "^4.1.2",
@@ -54,7 +49,7 @@
5449
"abi-decoder": "^2.4.0",
5550
"ethers": "^5.7.0",
5651
"get-port": "5.1.1",
57-
"husky": "^8.0.1",
52+
"husky": "^8.0.0",
5853
"jest": "^29.0.1",
5954
"jest-environment-jsdom": "^29.0.1",
6055
"jest-puppeteer": "^6.1.1",

0 commit comments

Comments
 (0)