Skip to content

Commit

Permalink
fix: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuravlevma committed Dec 10, 2024
1 parent 67c6b3a commit 76787e7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 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 run lint && npm run format && npm run test && npm run test:arch && git add .
17 changes: 17 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "UNLICENSED",
"scripts": {
"prebuild": "rimraf dist",
"prepare": "husky install",
"build": "nest build",
"format": "npx prettier --write 'src/**/*.{ts,js}'",
"format:check": "npx prettier --list-different 'src/**/*.{ts,js}'",
Expand Down Expand Up @@ -61,6 +62,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.13.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^3.4.2",
"source-map-support": "^0.5.21",
Expand Down

0 comments on commit 76787e7

Please sign in to comment.