Open IceProgrammer15 opened 3 weeks ago
I am not sure how features are prioritized , but I am going to open a pull request from my fork where I made this working with Rush. I believe my changes could make it easier to add other package managers down the road, for instance https://github.com/shadcn-ui/ui/issues/5529.
Feature description
Shadcn CLI does not support projects which are managed by @microsoft/rush mono repo.
Rush mono repo could be configured to use either
npm
,yarn
orpnpm
but it has its own way of managing dependencies (i.enpm install
,yarn add
orpnpm add
are not used diectly.)Problem: Because Rush is managing the dependencies differently, regardless of the Rush package manager config, none of the following Shadcn CLI commands works:
running Shadcn CLI to add a component will cause error at
installing dependencies
step:using npm
using pnpm
Proposed Solution
Shadcn CLI to detect if project is managed by Rush, and use rush cli to install dependencies. (Shadcn CLI currently supports
npm
,yarn
,pnpm
andbun
)Affected component/components
CLI
Additional Context
Additional details here...
Before submitting