Skip to content

chore: drop prepare script (build/ is committed for git installs)#8

Merged
mpge merged 1 commit into
masterfrom
chore/remove-prepare-script
Apr 19, 2026
Merged

chore: drop prepare script (build/ is committed for git installs)#8
mpge merged 1 commit into
masterfrom
chore/remove-prepare-script

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented Apr 19, 2026

Follow-up to #7. With build/ committed, the prepare lifecycle is unneeded; leaving it in triggers an npm 11 bug for git-URL consumers (mutually exclusive --prefer-offline / --prefer-online flags during the spawned prepare install). Removing prepare bypasses that path; prepublishOnly is kept so a future npm publish still runs the build.

Now that build/ ships in the repo (#7), the prepare lifecycle is
unneeded. Worse, leaving it in triggers an npm 11 bug for git-URL
consumers: npm spawns the prepare child install with both
--prefer-offline=false AND --prefer-online=false, which the cli now
rejects as mutually exclusive. Removing prepare bypasses that path
entirely and lets git-ref installs succeed on every npm version.

prepublishOnly is kept so an eventual `npm publish` still runs the
build before packaging.
@mpge mpge merged commit a095f36 into master Apr 19, 2026
2 checks passed
@mpge mpge deleted the chore/remove-prepare-script branch April 19, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant