shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
73.11k stars 4.47k forks source link

[bug]: -p, --path option is not working #4680

Open d-nakajima opened 1 month ago

d-nakajima commented 1 month ago

Describe the bug

path option is not working.

Affected component/components

Probably ALL

How to reproduce

Please try following code to reproduce this bug.

npx shadcn@latest add [some-component] -p [some-path]

Codesandbox/StackBlitz link

No response

Logs

none

System Info

npx -v => 10.8.2
npx shadcn@latest -v => 2.0.1

Before submitting

todorRadkov commented 1 month ago

I am facing the same issue by trying to add a dialog component in its own folder using pnpm:

pnpm dlx shadcn@latest add dialog --path src/dialog

This worked with the previous version, and it does not work anymore since the update.

ivan-plotnikov commented 1 week ago

+1