Skip to content

Commit c9cbcb8

Browse files
committed
Fix package.json to support Husky
1 parent d28e4aa commit c9cbcb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99
"url": "git://github.com/krismuniz/js-to-json-logic.git"
1010
},
1111
"scripts": {
12-
"pre-commit": "npm test",
13-
"pre-push": "npm test",
1412
"test": "nyc --reporter=html --reporter=text mocha",
1513
"lint": "eslint ."
1614
},
15+
"husky": {
16+
"hooks": {
17+
"pre-commit": "npm test",
18+
"pre-push": "npm test"
19+
}
20+
},
1721
"files": [
1822
"*.d.ts",
1923
"lib"

0 commit comments

Comments
 (0)