Skip to content

Commit c5556e5

Browse files
committed
chore: add pre-commit hook to run test
1 parent fd3aea0 commit c5556e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"babel-register": "^6.3.13",
5858
"coveralls": "^2.11.6",
5959
"cz-conventional-changelog": "^1.1.4",
60+
"ghooks": "^1.3.2",
6061
"in-publish": "^2.0.0",
6162
"istanbul": "^1.0.0-alpha.2",
6263
"mkdirp": "^0.5.1",
@@ -76,11 +77,16 @@
7677
],
7778
"standard": {
7879
"parser": "babel-eslint",
79-
"ignore":["/dist/"]
80+
"ignore": [
81+
"/dist/"
82+
]
8083
},
8184
"config": {
8285
"commitizen": {
8386
"path": "./node_modules/cz-conventional-changelog"
87+
},
88+
"ghooks": {
89+
"pre-commit": "npm run test:only"
8490
}
8591
}
8692
}

0 commit comments

Comments
 (0)