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
74.53k stars 4.62k forks source link

[bug]: "yarn" cli copy button copies "npm" cli #4535

Open Jay-Karia opened 3 months ago

Jay-Karia commented 3 months ago

Describe the bug

Under the Installation section in any component, to copy the cli when selected "yarn", it copies the cli of "npm". Instead of "yarn dlx shadcn-ui@latest add ", it copies "npx shadcn-ui@latest add ".

Affected component/components

Every

How to reproduce

  1. Go to any component page (say: Button)
  2. Navigate to Installation section
  3. In the CLI tab press copy button and select yarn.

It will copy the cli for npm, instead of yarn

Codesandbox/StackBlitz link

https://github.com/shadcn-ui/ui

Logs

No response

System Info

OS: Win 10
Browser: Chrome

Before submitting

iAbhinav commented 3 months ago

i can confirm that this is an issue.

Assign this issue to me, i can fix this.

Jay-Karia commented 3 months ago

You can directly send a PR