Skip to content

Commit

Permalink
Update dependency husky to v9 (#40694)
Browse files Browse the repository at this point in the history
* Update dependency husky to v9

* Migrate hooks to husky v9

---------

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: tbradsha <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent cc8c2f2 commit 43c832a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 20 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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"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"
},
"devDependencies": {
"eslint": "9.16.0",
"husky": "8.0.3",
"husky": "9.1.7",
"jetpack-cli": "workspace:*",
"jetpack-js-tools": "workspace:*"
},
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 43c832a

Please sign in to comment.