Demo
General
Codebase

Dependencies

Learn how to manage dependencies in the starter kit.

We chose pnpm as our package manager due to its speed and disk space efficiency.

Install all packages

To install all packages in all workspaces run:

Terminal
pnpm i

This is likely your first command when you download the starter kit.

Clean workspace

To clean the whole workspace run following command:

Terminal
pnpm clean:workspaces

Or alternatively in a specific workspace:

Terminal
cd apps/dashboardpnpm clean

Add a package

To install a package to the root of the monorepo, making it available to all workspaces, run:

Terminal
pnpm add -w <package-name>

To install a package to a specific workspace, making it available only to that workspace, run:

Terminal
pnpm add --filter <workspace-name> <package-name>

Remove a package

To remove a package from the root of the monorepo, run:

Terminal
pnpm remove -w <package-name>

To remove a package from a specific workspace, run:

Terminal
pnpm remove --filter <workspace-name> <package-name>

Update a package

This step is redundant because we automatically sync the package versions. You can just update the version somewhere in the monorepo and run pnpm i to sync. However pnpm also comes with a nice update command

Terminal
pnpm update -r <package-name>