Skip to content

Commit bf5037c

Browse files
committed
chore(package): add pre commit hook
1 parent 87feb20 commit bf5037c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
},
2525
"husky": {
2626
"hooks": {
27-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
27+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
28+
"pre-commit": "node bin/updateTestHash && git add package.json"
2829
}
2930
},
3031
"scripts": {
3132
"postinstall": "lerna bootstrap",
3233
"pretest": "lerna run build",
33-
"test": "lerna run test",
34+
"test": "lerna run test --since d9db6c67d3de51b65ae0825d2c58d65eb26b3c26",
3435
"publish": "lerna run build && lerna publish"
3536
}
3637
}

0 commit comments

Comments
 (0)