Skip to content

Commit

Permalink
add the build script to the pre-commit hook
Browse files Browse the repository at this point in the history
because testing the readme.test.js is not very useful if the
library has not been recently built
  • Loading branch information
veigaribo committed Oct 15, 2020
1 parent 4ae53d0 commit cfc8f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {},
"husky": {
"hooks": {
"pre-commit": "lint-staged && jest test/readme.test.js"
"pre-commit": "lint-staged && npm run build && jest test/readme.test.js"
}
},
"lint-staged": {
Expand Down

0 comments on commit cfc8f9c

Please sign in to comment.