Skip to content

Commit 1e6ec77

Browse files
raymondfengclaude
andcommitted
chore: migrate husky to v9 configuration
The `husky install` command is deprecated in v9. Replace with the new `husky` command and remove v8 artifacts (husky.sh sourcing, _/ directory). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Raymond Feng <enjoyjava@gmail.com>
1 parent 25080e7 commit 1e6ec77

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
[ -n "$CI" ] && exit 0
52

63
npx --no -- commitlint --edit "$1"

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
[ -n "$CI" ] && exit 0
52
if [ "$LINT_STAGED" = "0" ]; then
63
echo "lint-staged disabled via LINT_STAGED env var"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"copyright.owner": "IBM Corp. and LoopBack contributors",
77
"repository": "github:loopbackio/loopback-next",
88
"scripts": {
9-
"prepare": "husky install",
9+
"prepare": "husky",
1010
"postinstall": "npm run update-ts-project-refs",
1111
"update-ts-project-refs": "node bin/update-ts-project-refs.js",
1212
"prerelease": "npm run build:full && cross-env CI=1 npm run mocha && npm run lint",

0 commit comments

Comments
 (0)