Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Rush Monorepo support to the Shadcn CLI #5708

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

IceProgrammer15
Copy link

closes : #5705

Description:

This pull requests adds @microsoft/rush mono repo support to the Shadcn CLI.

Rush mono repo could be configured to use either npm, yarn or pnpm but it has its own way of managing dependencies
(i.e npm install , yarn add or pnpm add are not used diectly.)

I updated the getPackageManager() function to detect project is managed by Rush, and use rush cli to install dependencies.

I also moved dependency installation command out of update-dependencies.ts and into package-manager-commands.ts where we can build dependency installation commands for each different package managers and execute it.

I believe this will help supporting more package managers in future , for instance adding deno 2 : #5529.

Tests are added to all the new and modified utility functions.

Copy link

vercel bot commented Nov 4, 2024

@IceProgrammer15 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: add support for microsoft rush monorepo
1 participant