Install dependencies
To install a package you need to decide whether you want to install it to the root of the monorepo or to a specific workspace. Installing it to the root makes it available to all packages, while installing it to a specific workspace makes it available only to that workspace.- To install a package globally, run:
Terminal
- To install a package to a specific workspace, run:
Terminal
Terminal
Remove dependencies
Removing a package is the same as installing but with theremove
command.
- To install a package globally, run:
Terminal
- To install a package to a specific workspace, run:
Terminal
Upgrading dependencies
You can upgrade all the dependencies in all yourpackage.json
files and installs the new versions with the bump-deps
command:
Terminal
package.json
files and install the new versions.
You should run a
pnpm build
after running bump-deps
to ensure the project builds correctly. You should also run pnpm dev
and ensure the project runs correctly in runtime.Upgrading shadcn/ui components
You can upgrade all the shadcn/ui components in the Design System package with thebump-ui
command:
Terminal
package.json
file.
This will override all customization you’ve made to the components folder
@repo/design-system/components
. To avoid this happening, we recommend not to modify the code directly. If the shadcn components not satisfies your need , build your own instead of changing the shadcn components.The
shadcn
CLI will likely make some unwanted changes to your shared Tailwind config file and global CSS. Make sure you review changes before committing them.