Skip to content

Commit

Permalink
chore: migrate to the new husky v9
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Jan 29, 2024
1 parent a4207d7 commit 844844a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commitlint ${1}
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint ${1}
1 change: 0 additions & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"predeploy": "npm ci && npm run build",
"pm2": "bash deployment/pm2.sh",
"pm2:update": "bash deployment/pm2.sh --update",
"postinstall": "husky install .husky",
"commitlint": "commitlint --edit"
"commitlint": "commitlint --edit",
"prepare": "husky"
},
"engines": {
"node": ">=18.0.0"
Expand Down

0 comments on commit 844844a

Please sign in to comment.