shadcn-ui-snippets
shadcn-ui-snippets copied to clipboard
Read components.json
I think it would could be handy to replace the url (for cni-[xxx]) to the "$alisases.components" in components.json and then fallback to "@/components/ui" if not defined or if any error. For example, in my projects, I use "~" instead of "@" and this is the default in many generator (ex: t3 stack)
Thanks for reading 👍