Skip to content

Build src/ on git-install via a prepare script - #94

Merged
Fivell merged 1 commit into
masterfrom
chore/add-prepare-script
Oct 13, 2026
Merged

Fivell merged 1 commit into
masterfrom
chore/add-prepare-script

Conversation

@Fivell

@Fivell Fivell commented Oct 13, 2026

Copy link
Copy Markdown
Member

prepublishOnly only runs on npm publish, so installing this package straight from git — e.g. a consumer pinning a specific commit before a release is cut — leaves it with no src/, and main/style (which point at src/…) can't resolve.

Add a prepare script (same two steps as prepublishOnly: prepare_src + prepare_import) so the build also runs on git-install and local npm install, and gitignore the generated src/ and *.bak so they're never committed.

No change to published releases — prepublishOnly still runs on publish exactly as before.

prepublishOnly only runs on npm publish, so installing this package straight
from git (e.g. a consumer pinning a commit before a release) left it with no
src/ and an unresolvable main/style. Add a prepare script (same steps) so the
build runs on git-install too, and gitignore the generated src/ and *.bak.
@Fivell
Fivell merged commit 51cac61 into master Oct 13, 2026
24 checks passed
@Fivell
Fivell deleted the chore/add-prepare-script branch October 13, 2026 11:09
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