Skip to content

Build on prepublishOnly so dist is never stale at publish#26

Open
kashishhora wants to merge 2 commits into
mainfrom
chore/prepublish-build-safeguard
Open

Build on prepublishOnly so dist is never stale at publish#26
kashishhora wants to merge 2 commits into
mainfrom
chore/prepublish-build-safeguard

Conversation

@kashishhora

Copy link
Copy Markdown
Member

Summary

The package publishes files: ["dist"] but had no build step wired into the publish lifecycle, so npm publish would ship whatever happened to be in dist/ (stale or missing) unless you remembered to pnpm build first.

Adds "prepublishOnly": "pnpm build" so npm publish always rebuilds dist/ first.

Test plan

  • npm run prepublishOnly builds dist/ successfully
  • pnpm lint clean

@kashishhora kashishhora requested a review from naji247 June 25, 2026 14:39
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.

2 participants