fix: auto-generate component barrel file during docs sync#59
fix: auto-generate component barrel file during docs sync#59rishavmukherji wants to merge 1 commit intomainfrom
Conversation
Generates src/components/docs/index.ts in the target repo so new components are automatically available to mdx-components.tsx without manual registration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Good fix — auto-generating the barrel file during docs sync removes the manual bookkeeping that caused the Vercel build failure. A few notes from reviewing the approach: On the trigger for One question on the generated file: Is Minor nit: The test plan checkbox ( Overall this is the right approach — manual registration of MDX components is error-prone and easy to forget. LGTM once the post-merge Vercel check passes. |
Summary
src/components/docs/index.tsbarrel file in the target repo during syncmdx-components.tsxwithout manual registrationmdx-components.tsxchangesFixes the Vercel build failure caused by unregistered
ElementPreview,ColorSwatch, andSnapPreviewcomponents.Test plan
🤖 Generated with Claude Code