Skip to content

fix(release): build packages in dependency order before publishing - #130

Merged
s3rot0n1n merged 1 commit into
mainfrom
fix/publish-build-order
Oct 24, 2026
Merged

s3rot0n1n merged 1 commit into
mainfrom
fix/publish-build-order

Conversation

@s3rot0n1n

Copy link
Copy Markdown
Contributor

Problem

The publish run for #55 failed for @frontlit/page-builder@0.1.0-alpha.4:

src/components/text-renderer.ts(2,30): error TS2307: Cannot find module '@frontlit/text-editor/renderer'

changeset publish runs every package's prepublishOnly build in parallel. text-editor's build cleans dist/ while page-builder's type build reads @frontlit/text-editor/renderer from it. The other three packages published, so @frontlit/preview@0.1.0-alpha.2 now depends on page-builder@0.1.0-alpha.4, which isn't on npm. npx @frontlit/preview@alpha currently fails with ETARGET.

Change

  • release builds text-editor and media-uploader, then page-builder, then publishes.
  • Removed prepublishOnly from the three packages so publish doesn't rebuild them in parallel again.

Testing

From a clean state (all three dist/ removed), the new build steps succeed. npm pack --dry-run for page-builder 0.1.0-alpha.4 gives 141 files, the same as the published 0.1.0-alpha.3.

After merge

This PR doesn't touch .changeset/, so the publish workflow won't run on its own. Run it with workflow_dispatch. With no pending changesets, it publishes only the missing page-builder@0.1.0-alpha.4.

🤖 Generated with Claude Code

changeset publish ran each package's prepublishOnly build in parallel.
text-editor's build cleans dist/ while page-builder's type build reads
@frontlit/text-editor/renderer from it, so page-builder@0.1.0-alpha.4
failed to publish and preview@0.1.0-alpha.2 now depends on a version
that doesn't exist.

The release script now builds text-editor and media-uploader, then
page-builder, before publishing, and the parallel prepublishOnly
builds are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T07:32:19.572524Z b00d01d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@s3rot0n1n
s3rot0n1n merged commit 6186171 into main Oct 24, 2026
3 checks passed
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