Skip to content

Commit bf2b97e

Browse files
committed
chore(deps): bump husky to ^9.1.7 and drop migration plan file
- Remove `.claude/plans/migrate-to-yarn-4.md` -- the plan was useful during the migration but doesn't need to live in the repo. - Bump husky 6.0.0 -> 9.1.7. The v9 hooks layout sets core.hooksPath to `.husky/_/` (not `.husky/`), with auto-generated stubs in that directory routing each hook to the user-authored counterpart at `.husky/<hook>`. The user hook files no longer need the `#!/bin/sh` + `. "$(dirname "$0")/_/husky.sh"` boilerplate; in v9 that boilerplate emits a deprecation warning and is slated to break in v10. Trimmed those two lines from `.husky/pre-commit` and `.husky/commit-msg`, and deduped the accidental double commitlint invocation in `.husky/commit-msg` while there. - Update the core SDK workspace's postinstall to invoke the v9 binary path (`node_modules/husky/bin.js` -- the `install` subcommand is gone in v9; running the binary with no args performs the same setup).
1 parent fea39e6 commit bf2b97e

6 files changed

Lines changed: 8 additions & 271 deletions

File tree

.claude/plans/migrate-to-yarn-4.md

Lines changed: 0 additions & 256 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx commitlint --edit $1
51
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
dotgit/hooks/pre-commit-format.sh && dotgit/hooks/pre-commit-reject-binaries.py

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@semantic-release/git": "^10.0.1",
4141
"dotenv": "^10.0.0",
4242
"execa": "^5.1.1",
43-
"husky": "^6.0.0",
43+
"husky": "^9.1.7",
4444
"prettier": "^3.5.1",
4545
"semantic-release": "^25.0.2",
4646
"uglify-js": "^3.19.2"

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"README.md"
2424
],
2525
"scripts": {
26-
"postinstall": "(cd .. && node node_modules/husky/lib/bin.js install) && yarn run shared-native:sync",
26+
"postinstall": "(cd .. && node node_modules/husky/bin.js) && yarn run shared-native:sync",
2727
"shared-native:sync": "bash ./scripts/sync-shared-native.sh all",
2828
"shared-native:clean-copies": "bash ./scripts/clean-shared-native-copies.sh all",
2929
"build": "rimraf lib && yarn run --silent build-translations && bob build && yarn run --silent copy-translations",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14727,12 +14727,12 @@ __metadata:
1472714727
languageName: node
1472814728
linkType: hard
1472914729

14730-
"husky@npm:^6.0.0":
14731-
version: 6.0.0
14732-
resolution: "husky@npm:6.0.0"
14730+
"husky@npm:^9.1.7":
14731+
version: 9.1.7
14732+
resolution: "husky@npm:9.1.7"
1473314733
bin:
14734-
husky: lib/bin.js
14735-
checksum: 10c0/00dca95e24f6174f150ba1ee746948a89a3ff20b460ecad7bc2e4c2a76fe5b78bef1400c84bc2bade6588392c37baf57c173f49dc123fdbc7c7a71e4d412fb67
14734+
husky: bin.js
14735+
checksum: 10c0/35bb110a71086c48906aa7cd3ed4913fb913823715359d65e32e0b964cb1e255593b0ae8014a5005c66a68e6fa66c38dcfa8056dbbdfb8b0187c0ffe7ee3a58f
1473614736
languageName: node
1473714737
linkType: hard
1473814738

@@ -21921,7 +21921,7 @@ __metadata:
2192121921
"@semantic-release/git": "npm:^10.0.1"
2192221922
dotenv: "npm:^10.0.0"
2192321923
execa: "npm:^5.1.1"
21924-
husky: "npm:^6.0.0"
21924+
husky: "npm:^9.1.7"
2192521925
prettier: "npm:^3.5.1"
2192621926
semantic-release: "npm:^25.0.2"
2192721927
uglify-js: "npm:^3.19.2"

0 commit comments

Comments
 (0)