Repository navigation
fix(docs): let the Vercel build install what the web components import - #242
Conversation
The site is built on Vercel from apps/docs, and an install run from there brings only the docs app's own dependencies. Its pages import the web components' source by path, and that source imports tailwind-variants, which the docs app had never declared. CI installs every workspace from the root, so it was there in CI and missing on Vercel: the first deploy with the web collection failed at "Module not found: tailwind-variants" with every check green. The docs app now depends on panelui-web by name, which brings that package's dependencies with it. Checked by cloning the repository fresh, installing from apps/docs and building, which is what Vercel does. A contract test keeps the dependency there, and checks that the web package declares everything its source imports. CLAUDE.md says how the two installs differ and how to reproduce Vercel's. The lockfile gains one line, the new edge. No version moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
What this changes
apps/docsnow depends onpanelui-webby name.Why
The production deploy of
mainafter #241 failed on Vercel:Vercel builds from
apps/docs, andnpm installrun inside a workspace brings only that workspace's dependencies. The docs pages import the web components' source by path, and that source importstailwind-variants, which the docs app never declared. CI runsnpm ciat the root, which brings everything, so every check was green.Type of change
How it was tested
npm installinapps/docs:tailwind-variantswas missing before this change and present after it.npm run buildinapps/docspasses, which is what Vercel runs.npm test(819 pass, one new),npm run typecheck,npm run docs:generateleaves no diff.A contract test now holds the dependency in place and checks that
packages/web/package.jsondeclares everything its source imports. The lockfile gains one line; no version moved.🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation
Tests