Skip to content

Commit 16b5ccf

Browse files
chore(husky): migrate to husky 9
1 parent 97956b7 commit 16b5ccf

File tree

5 files changed

+2
-28
lines changed

5 files changed

+2
-28
lines changed

.husky/.gitignore

-1
This file was deleted.

.husky/commit-msg

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx commitlint --edit $1

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run test:ci
52
npm run test:esm
63
npx lint-staged

package-lock.json

-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
"lint": "eslint --ignore-path .gitignore --ignore-pattern /examples/ .",
2525
"lint:fix": "npm run lint -- --fix",
2626
"lint:tsc": "tsc --noEmit",
27-
"postinstall": "husky install",
28-
"postpublish": "pinst --enable",
29-
"prepublishOnly": "pinst --disable && npm run lint && npm run test:ci && npm run clean && npm run build",
27+
"prepare": "husky",
28+
"prepublishOnly": "npm run lint && npm run test:ci && npm run clean && npm run build",
3029
"size-limit": "size-limit",
3130
"test": "jest --testPathIgnorePatterns __tests__/integration",
3231
"test:ci": "CI=true npm test -- --ci --colors",
@@ -76,7 +75,6 @@
7675
"jest-environment-jsdom": "29.7.0",
7776
"jest-watch-typeahead": "2.2.2",
7877
"lint-staged": "15.2.2",
79-
"pinst": "3.0.0",
8078
"preact": "10.19.4",
8179
"react": "18.2.0",
8280
"react-dom": "18.2.0",

0 commit comments

Comments
 (0)