-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shadcx does not respect alias field #3831
Comments
Investigation: plate/packages/cli/src/utils/updaters/update-files.ts Lines 74 to 81 in 6fad759
Line 74, the path is resolved to registries.plate.aliases.ui Line 78, it is overridden by the component's config Sample file:
|
Does it work with shadcn? If so, can you spot the code diff? |
I checked shadcn's source code, it seems they are completely different? |
I see, let me confirm how shadcn works. It does work with shadcn. |
shadcx should only be an extension of shadcn. We regularly sync with the latest version of shadcn, but we may have missed edge cases |
I'm confused, shadcx's cli code is completely different from shadcn's. Is it copied from shadcn repository at some time before? |
With "registries", shadcn does not recognize components.json, too. I guess they validate the schema |
My bad 🤣. I check shadcn's cli package and didn't see related codes. Now I realize its the shadcn package. I'll compare them later |
Description
When designating aliases.ui, shadcx still add component to components/plate-ui folder
My components.json:
I've specified multiple combinations of "alias" and "plate-ui", but
Reproduction URL
No response
Reproduction steps
Plate version
[email protected]
Slate React version
Unrelated
Screenshots
No response
Logs
No response
Browsers
No response
The text was updated successfully, but these errors were encountered: