Skip to content

Conversation

@naaa760
Copy link

@naaa760 naaa760 commented Nov 17, 2025

Fix JSDoc Comments Stripping

fix: #8794

  • registry components with JSDoc comments at the top were losing them during shadcn add. Fixed by using getFullText() instead of getText() in the transform function to preserve leading comments.

Changes:

  • transformers/index.ts: getText()getFullText()
  • Added test cases for JSDoc preservation

@vercel
Copy link

vercel bot commented Nov 17, 2025

@naaa760 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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.

[bug]: Cli add seems to strip jsdoc comments at the beginning of content in a registry item.

1 participant