Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .bumpy/fix-postinstall-breaking-installs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fledgling: patch
---

Fix `npx fledgling` (and every other install) doing nothing at all. The `postinstall: lefthook install` script ran on end-user installs, but `lefthook` is a devDependency and isn't there — so the script exited 127, npm aborted the install before ever reaching the `bin`, and since npm swallows script output at the default loglevel you got zero output and no error. Moved git-hook installation to `prepare`, which runs in the repo and before publish but not for consumers installing from the registry.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dev": "tsdown --watch",
"typecheck": "tsc --noEmit",
"start": "node dist/cli.mjs",
"postinstall": "lefthook install"
"prepare": "lefthook install || true"
},
"dependencies": {
"@clack/prompts": "^1.5.1",
Expand Down