[bug]: transformImport util doesn't support registry items that are formatted with single quotes #4870
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
I'm working on building an internal component registry for use at my org, and while testing out the new cli with our registry files, I found a bug with the
transformImport
util.Since we format our files with
'
instead of"
, the regex used in the util mentioned doesn't add prefixes correctly when referencing files formatted like ours.I'll submit a PR for a fix shortly, which will update the regex to look for both
'
and"
so it can support both formatting stylesAffected component/components
N/A
How to reproduce
pnpm dlx shadcn@latest add https://lht8mm-3000.csb.app/registry/custom-button.json
custom-button.tsx
file will have incorrect class names generatedSample output:
Codesandbox/StackBlitz link
https://codesandbox.io/p/devbox/dark-hill-lht8mm
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: