Skip to content

Commit 9759365

Browse files
Gido Mandersclaude
andcommitted
chore: Update husky to modern v9+ syntax
Remove deprecated husky.sh shim from pre-commit hook and update prepare script from 'husky install' to 'husky'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fa26ea2 commit 9759365

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.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
npx lint-staged

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"lint:test": "eslint tests",
6767
"release": "npm run tsc && np",
6868
"dev:publish": "./scripts/dev-publish.sh",
69-
"prepare": "husky install"
69+
"prepare": "husky"
7070
},
7171
"lint-staged": {
7272
"{src,tests}/**/*.{js,jsx,json,scss,ts,tsx}": [

0 commit comments

Comments
 (0)