The only catch is the folder structure of packages/ui is not as clean, but it follows the standard pattern. Also had to add "@acme/ui/*": ["../../packages/ui/src/*"] to the nextjs tsconfig.json as outlined in https://github.com/dan5py/turborepo-shadcn-ui/issues/20
Thanks for the PR. However I don't want to move all the components 2 levels deep for "no" reason. I'll just add the workaround with the self-referncing to cn() in the orginal PR
I was able to follow https://github.com/dan5py/turborepo-shadcn-ui and get the
shadcn-ui
cli working inpackages/ui
.The only catch is the folder structure of
packages/ui
is not as clean, but it follows the standard pattern. Also had to add"@acme/ui/*": ["../../packages/ui/src/*"]
to the nextjstsconfig.json
as outlined in https://github.com/dan5py/turborepo-shadcn-ui/issues/20Seems like the pros outweigh the cons though.