Skip to content

Commit bc2b6cb

Browse files
committed
fix(hooks): remove ghooks in favor of husky
This replaces ghooks with husky. ghooks is deprecated in favor of husky. Contributors may need to For commitizen developers, you need to do the following: 1. rm -rf .git/hooks 2. rm -rf node_modules 3. run npm install. Closes #410
1 parent 3a3d10d commit bc2b6cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"commit": "node bin/git-cz",
99
"build": "babel src --out-dir dist",
1010
"build:watch": "babel --watch src --out-dir dist",
11+
"precommit": "npm run lint && npm run test && npm run check-coverage",
1112
"prepublish": "not-in-install && npm run build || true",
1213
"report-coverage": "nyc report --reporter=lcov | codecov",
1314
"write-coverage": "nyc report --reporter=lcov",
@@ -21,9 +22,6 @@
2122
"config": {
2223
"commitizen": {
2324
"path": "./node_modules/cz-conventional-changelog"
24-
},
25-
"ghooks": {
26-
"pre-commit": "npm run lint && npm run test && npm run check-coverage"
2725
}
2826
},
2927
"homepage": "https://github.com/commitizen/cz-cli",
@@ -60,7 +58,7 @@
6058
"eslint-config-standard": "6.2.1",
6159
"eslint-plugin-promise": "3.4.0",
6260
"eslint-plugin-standard": "2.0.1",
63-
"ghooks": "1.3.2",
61+
"husky": "0.12.0",
6462
"in-publish": "^2.0.0",
6563
"mocha": "3.1.2",
6664
"node-uuid": "1.4.7",

0 commit comments

Comments
 (0)