Skip to content

Commit f35b902

Browse files
committed
Upgrade husky devDependency
1 parent af07d8b commit f35b902

File tree

2 files changed

+193
-19
lines changed

2 files changed

+193
-19
lines changed

package-lock.json

Lines changed: 186 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"fix": "npm run lint -- --fix",
1717
"build": "babel src -d lib && webpack -p",
1818
"toc": "markdown-toc -i README.md",
19-
"prepublishOnly": "npm test && npm run build && pkg-ok",
20-
"precommit": "npm test"
19+
"prepublishOnly": "npm test && npm run build && pkg-ok"
2120
},
2221
"dependencies": {
2322
"body-parser": "^1.18.3",
@@ -66,7 +65,7 @@
6665
"eslint-plugin-react": "^7.8.2",
6766
"eslint-plugin-standard": "^3.1.0",
6867
"html-webpack-plugin": "^3.2.0",
69-
"husky": "^0.14.3",
68+
"husky": "^1.0.0-rc.8",
7069
"jest": "^23.1.0",
7170
"markdown-toc": "^1.2.0",
7271
"milligram": "^1.3.0",
@@ -115,5 +114,10 @@
115114
"homepage": "https://github.com/typicode/json-server",
116115
"engines": {
117116
"node": ">=6"
117+
},
118+
"husky": {
119+
"hooks": {
120+
"pre-commit": "npm test"
121+
}
118122
}
119123
}

0 commit comments

Comments
 (0)