Repository navigation
fix(dev): stop dev from racing the kit build against docs props generation - #160
Closed
fabiobaglione wants to merge 1 commit into
Closed
fabiobaglione wants to merge 1 commit into
fabiobaglione wants to merge 1 commit into
Conversation
…ation 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>
|
Author
|
Superseded by a PR from a branch that follows the repo naming. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
pnpm run devcrashed inapps/docswithTypeError: Reduce of empty array with no initial valueatgenerate-props.mjs.packages/kit/rollup.config.jsdeletedpackages/kit/diston every start, including watch mode.turbo run dev --parallelstarts the docs props generator at the same moment, so it read an emptydist, resolved no types and crashed.Changes
distwhen rollup runs with-w.devbuilds the kit first:pnpm build:kit && turbo run dev --parallel.generate-props.mjsstops with "runpnpm build:kitfirst" whendistis missing, and thereducethrows a readable error naming the prop.Verification
pnpm run devin a fresh worktree:generate-propsnow writes 222 props tables. Storybook and the examples app start.Not covered: the docs
devtask still stops atcopy-examplesuntil the examples are built once (pnpm turbo run build --filter=@codeui/examples...). That is a separate gap and is not changed here.🤖 Generated with Claude Code