Skip to content

Commit c40da2d

Browse files
authored
fix: make husky CI-safe in prepare script (#184)
## Summary The v1.22.1 npm publish failed because the `prepare` lifecycle script runs `husky` during `npm publish` in the publish job, which doesn't have husky on the PATH. Changes `"prepare": "husky"` to `"prepare": "husky || true"` — husky's recommended CI-safe pattern. Merging this will re-trigger the release workflow and publish v1.22.1 to npm. ## Test plan - [x] `husky || true` is husky's documented pattern for CI - [x] No change to local dev (husky still installs hooks)
2 parents dea52b0 + d6992e5 commit c40da2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"lint": "eslint .",
171171
"format:check": "prettier --check .",
172172
"release": "pnpm build && pnpm test && pnpm lint && npm publish",
173-
"prepare": "husky"
173+
"prepare": "husky || true"
174174
},
175175
"lint-staged": {
176176
"*.{ts,mts,js,mjs,cjs,json,html,css,md}": "prettier --write",

0 commit comments

Comments
 (0)