Skip to content

Commit

Permalink
chore(deps): migrate husky to latest version (v9)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Apr 3, 2024
1 parent f896968 commit cf25920
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1" || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;33mgit commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; }
3 changes: 0 additions & 3 deletions .husky/post-checkout
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

set +e
# Install any missing dependencies since package.json changed, while only versions changes are ignored.
git diff-tree -r --ignore-matching-lines="version" --name-only --no-commit-id "$1" "$2" | grep --quiet package.json && npm ci
Expand Down
3 changes: 0 additions & 3 deletions .husky/post-merge
@@ -1,5 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# Install any missing dependencies since package.json changed, while only versions changes are ignored.
git diff-tree -r --ignore-matching-lines="version" --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet package.json && npm ci
3 changes: 0 additions & 3 deletions .husky/pre-commit
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test -- --onlyChanged --watchAll=false
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -41,7 +41,7 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"start": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
"prepare": "husky install",
"prepare": "husky",
"release": "dotenv semantic-release --no-ci",
"release:ci": "semantic-release",
"release:dry-run": "npm run release -- --dry-run",
Expand Down

0 comments on commit cf25920

Please sign in to comment.