Skip to content

Commit 84b5453

Browse files
committed
build: migrate Husky hooks to latest
1 parent 032d0fc commit 84b5453

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn hover-scripts commit-msg

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn hover-scripts pre-commit --no-toc

package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@
1313
"prepublishOnly": "yarn rebuild && generate-export-aliases",
1414
"rebuild": "yarn clean && yarn build",
1515
"test": "hover-scripts test",
16-
"validate": "hover-scripts validate 'lint,test --coverage --runInBand --verbose'"
17-
},
18-
"husky": {
19-
"hooks": {
20-
"pre-commit": "hover-scripts pre-commit --no-toc",
21-
"commit-msg": "hover-scripts commit-msg"
22-
}
16+
"validate": "hover-scripts validate 'lint,test --coverage --runInBand --verbose'",
17+
"prepare": "husky install"
2318
},
2419
"repository": {
2520
"type": "git",

0 commit comments

Comments
 (0)