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 79c44b1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 59 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
36 changes: 24 additions & 12 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"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",
"postinstall": "husky install"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,7 +44,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
Loading

0 comments on commit 79c44b1

Please sign in to comment.