Skip to content

fix(release): route package prepack through turbo - #245

Merged
antfu merged 1 commit into
mainfrom
rich-icons-fold
Aug 17, 2026
Merged

fix(release): route package prepack through turbo#245
antfu merged 1 commit into
mainfrom
rich-icons-fold

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Why

The v0.9.0-beta.6 release failed during pnpm -r publish:

failed to load config from plugins/inspect/src/spa/vite.config.ts
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../@devframes/vite/dist/single.mjs'

Every publishable package's prepack ran its own build in isolation (pnpm buildtsdown/vite), never building its workspace dependencies. pnpm -r publish skips packages whose version already exists on npm, so @devframes/vite's prepack never ran and its dist/ was absent — yet plugin-inspect's build imports @devframes/vite/single, so it blew up.

What

Route each package's prepack through turbo run build --filter=<self>. Turbo honours the dependsOn graph in turbo.json, so building any package first builds its workspace deps in the correct order, and turbo's cache means shared deps (e.g. devframe, @devframes/vite) are built once and restored on cache hit rather than rebuilt per package.

Verified locally with a cleaned tree: publishing @devframes/plugin-inspect first now builds devframe → hub → hub-ui → vite → plugin-inspect in order, and subsequent packages' prepack cache-hit the shared deps (e.g. plugin-og: 4 cached, 1 built).

This PR was created with the help of an agent.

@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit ef0aa89
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a8262dc86e0da000898544d
😎 Deploy Preview https://deploy-preview-245--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit ee0a799 into main Aug 17, 2026
12 checks passed
@antfu
antfu deleted the rich-icons-fold branch August 17, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants