Skip to content

Commit

Permalink
Migrate hooks to husky v9
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Dec 20, 2024
1 parent a555f21 commit 3694f8e
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
3 changes: 0 additions & 3 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./tools/js-tools/git-hooks/post-merge-checkout-hook.sh "$1"
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./tools/js-tools/git-hooks/post-merge-checkout-hook.sh ORIG_HEAD
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node tools/js-tools/git-hooks/pre-commit-hook.js
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if test -c /dev/tty && sh -c ': < /dev/tty' >/dev/null 2>/dev/null; then
exec < /dev/tty
fi
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php:autofix": "composer phpcs:fix",
"php:compatibility": "composer phpcs:compatibility",
"php:lint": "composer phpcs:lint",
"prepare": "husky install",
"prepare": "husky",
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,cjs,mjs,ts,tsx,svelte,json,json5}\"",
"version-packages": "bash ./tools/version-packages.sh"
},
Expand Down

0 comments on commit 3694f8e

Please sign in to comment.