Skip to content

fix(dev): build the kit before docs props generation - #161

Open
fabiobaglione wants to merge 1 commit into
riccardoperra:mainfrom
fabiobaglione:fix/dev-kit-build-race
Open

fabiobaglione wants to merge 1 commit into
riccardoperra:mainfrom
fabiobaglione:fix/dev-kit-build-race

Conversation

@fabiobaglione

Copy link
Copy Markdown

Fixes the pnpm run dev crash in apps/docs (empty reduce in generate-props.mjs). Rollup deleted packages/kit/dist on every start, including watch mode, while turbo ran the docs props generator in parallel.

  • keep dist when rollup runs with -w
  • root dev builds the kit first
  • generate-props fails with a clear message when the kit is not built

Verified: generate-props writes 222 props tables in a fresh worktree. Not covered: copy-examples still needs the examples built once.

🤖 Generated with Claude Code

Rollup removed packages/kit/dist on every start, including watch mode, while
the docs generate-props script read it in parallel, crashing on an empty reduce.

- keep dist when rollup runs with -w
- build the kit before starting the parallel dev tasks
- fail generate-props with a clear message when the kit is not built

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d62e57f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@fabiobaglione
fabiobaglione marked this pull request as ready for review November 30, 2026 21:03

This branch has not been deployed

No deployments
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