nrjdalal/shadcn-ui-snippets

Read components.json

titouancreach opened this issue ยท 1 comments

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 ๐Ÿ‘

dope idea will look into it in free time, meanwhile feel free to push such updates if doable on your end ๐Ÿ˜„