Skip to content

dev: rebuild react-ui dist when git install left it empty - #10

Open
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-5767-ensure-react-ui-dist-before-web-build
Open

dev: rebuild react-ui dist when git install left it empty#10
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-5767-ensure-react-ui-dist-before-web-build

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Local bun run dev can fail at the web build with Rollup unable to resolve @corbits/react-ui/styles.css when a git install of react-ui never produced dist/. CI stays green because clean installs usually run prepare; local trees sometimes do not.

bun run dev now checks for dist/styles.css and, if missing, runs the package's own scripts/prepare.mjs before building the web app. Happy path (dist already present) is unchanged.

Fixes CL-5767.

Test plan

  • With react-ui dist/ present: bun run dev still boots without an extra prepare
  • After removing apps/web/node_modules/@corbits/react-ui/dist: bun run dev logs the prepare step, rebuilds dist, then builds web successfully
  • CI checks green on this branch

Local bun install sometimes leaves @corbits/react-ui without a prepare build, so vite fails on styles.css. Run the package prepare when dist/styles.css is missing, then continue the web build.
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