Skip to content

Check for a build on publish instead of rebuilding - #9

Merged
Him188 merged 1 commit into
mainfrom
fix/release-no-rebuild-on-publish
Sep 5, 2026
Merged

Him188 merged 1 commit into
mainfrom
fix/release-no-rebuild-on-publish

Conversation

@Him188

@Him188 Him188 commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

During the 0.2.1 release, @fishaudio/agent-widget-embed failed its types build because @fishaudio/agent-widget's prepublishOnly rebuild (with clean: true) was emptying dist/ at the same moment: changeset publish publishes packages concurrently.

pnpm release already builds everything up front, so prepublishOnly now only asserts that the package's entry file exists (scripts/assert-built.mjs) instead of rebuilding. Verified both outcomes locally.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

changeset publish runs package publishes concurrently and every build
empties its dist/ first, so a sibling's types build could read a
dependency's dist/ mid-rebuild and fail. The release script already
builds everything once; prepublishOnly now only verifies the output
exists.
@Him188
Him188 merged commit 6c1ae2f into main Sep 5, 2026
2 checks passed
@Him188
Him188 deleted the fix/release-no-rebuild-on-publish branch September 5, 2026 09:25
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