Commit 8a46725
fix: move prepare lifecycle hook to explicit setup-hooks script
npm's prepare hook runs on every `npm install` in any environment,
causing the package to silently install git hooks into any consumer's
repository without their explicit consent. This is unexpected behavior
for a plugin package consumed by end users.
Rename prepare to setup-hooks so contributors can opt in explicitly by
running `npm run setup-hooks` after cloning, as now documented in
CONTRIBUTING.md.
Co-Authored-By: Claude Code <noreply@anthropic.com>1 parent 16c5c8b commit 8a46725
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments