692 B
692 B
paths
| paths | |
|---|---|
|
Installing Packages
When adding a new dependency to any package.json in the monorepo:
-
Look up the latest version on npm before adding:
pnpm view <package-name> versionIf unsure which version to use (e.g. major version compatibility), confirm with the user.
-
Edit the package.json directly — do NOT use
pnpm addas it can cause issues in the monorepo. Add the dependency with the correct version range (typically^x.y.z). -
Run
pnpm ifrom the repo root after editing to install and update the lockfile:pnpm iAlways run from the repo root, not from the package directory.