[bug]: Canary CLI monorepo doesn't Install dependencies in right place #6286
Open
Description
Describe the bug
I've tried the new Canary CLI monorepo to initialize a new project and add a component, but the dependencies are being installed in the wrong location. They are being installed in the web application instead of the ui package.
Affected component/components
All
How to reproduce
- Initialize a new project using the Shadcn CLI with monorepo:
pnpm dlx shadcn@canary init
1.2 Picking the monorepo option
? Would you like to start a new project?
Next.js
❯ Next.js (Monorepo)
- Add a component to the project (e.g., a button or dialog).
pnpm dlx shadcn@latest add dialog -c apps/web
- Run pnpm install
pnpm i
- Observe that the Radix packages are either missing or not installed in the incorrect place.
Codesandbox/StackBlitz link
https://codesandbox.io/p/github/davidFeldqwe/mono-repo-shadcn-demo/main?import=true
Logs
No response
System Info
macOS, chrome
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues