Skip to content

Commit 9c37b7d

Browse files
committed
build: migrate Husky configuration to 7.0
1 parent 92bc165 commit 9c37b7d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.husky/commit-msg

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

.husky/pre-commit

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

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,8 @@
2424
"start:types": "tsc -b -w --preserveWatchOutput src/",
2525
"test": "node src test",
2626
"test:update": "node src test --updateSnapshot",
27-
"validate": "node src validate"
28-
},
29-
"husky": {
30-
"hooks": {
31-
"pre-commit": "node src pre-commit",
32-
"commit-msg": "node src commit-msg"
33-
}
27+
"validate": "node src validate",
28+
"prepare": "husky install"
3429
},
3530
"files": [
3631
"api",

0 commit comments

Comments
 (0)