Skip to content

Commit d3a5bd6

Browse files
committed
Update Husky config for version 6
1 parent 3676b8a commit d3a5bd6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.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+
npm run build && npm run lint && npm run test

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@
88
"test": "jest ${1}",
99
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
1010
"lint": "eslint . --ext .ts --cache",
11-
"prepare": "npm run build",
11+
"prepare": "husky install",
1212
"version": "manual-git-changelog onversion"
1313
},
14-
"husky": {
15-
"hooks": {
16-
"pre-commit": "npm run build && npm run lint && npm run test"
17-
}
18-
},
1914
"jest": {
2015
"globals": {
2116
"ts-jest": {

0 commit comments

Comments
 (0)