You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a new dependency to any package.json in the monorepo:
9
+
10
+
1.**Look up the latest version** on npm before adding:
11
+
```bash
12
+
pnpm view <package-name> version
13
+
```
14
+
If unsure which version to use (e.g. major version compatibility), confirm with the user.
15
+
16
+
2.**Edit the package.json directly** — do NOT use `pnpm add` as it can cause issues in the monorepo. Add the dependency with the correct version range (typically `^x.y.z`).
17
+
18
+
3.**Run `pnpm i` from the repo root** after editing to install and update the lockfile:
19
+
```bash
20
+
pnpm i
21
+
```
22
+
Always run from the repo root, not from the package directory.
Copy file name to clipboardExpand all lines: CLAUDE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ This file provides guidance to Claude Code when working with this repository. Su
6
6
7
7
This is a pnpm 10.23.0 monorepo using Turborepo. Run commands from root with `pnpm run`.
8
8
9
+
**Adding dependencies:** Edit `package.json` directly instead of using `pnpm add`, then run `pnpm i` from the repo root. See `.claude/rules/package-installation.md` for the full process.
10
+
9
11
```bash
10
12
pnpm run docker # Start Docker services (PostgreSQL, Redis, Electric)
0 commit comments