iconDirEasy
Codebase

Managing dependencies

Learn how to manage dependencies in your project.

Install dependencies

Terminal
pnpm add <package-name>

Remove dependencies

Terminal
pnpm remove <package-name>

Upgrading dependencies

You can upgrade all the dependencies in all your package.json files and installs the new versions with the bump-deps command:

Terminal
pnpm bump-deps

This will update all the dependencies in your 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 with the bump-ui command:

Terminal
pnpm bump-ui

This will update all the shadcn/ui components, as well as the relevant dependencies in the package.json file.

This will override all customization you've made to the components folder /components/ui. 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.

On this page