Skip to content

Commit

Permalink
fix: update husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
Delagen committed Dec 15, 2021
1 parent f590513 commit fef054a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:debug": "node --inspect-brk --inspect ./node_modules/jest/bin/jest.js --runInBand",
"prepublish": "ng build"
"prepublish": "ng build",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,7 +43,7 @@
"@types/jest": "^27.0.3",
"@types/node": "^16.11.13",
"core-js": "^3.19.3",
"husky": "^7.0.4",
"husky": "^7.0.0",
"jest": "^27.4.5",
"jest-preset-angular": "^11.0.1",
"lint-staged": "^12.1.2",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3778,7 +3778,7 @@
dependencies:
"ms" "^2.0.0"

"husky@^7.0.4":
"husky@^7.0.0":
"integrity" "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ=="
"resolved" "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz"
"version" "7.0.4"
Expand Down

0 comments on commit fef054a

Please sign in to comment.