<One sentence: what lives in this monorepo.>
Layout
apps/web(), `apps/api` ( ), `apps/docs` packages/uishared components,packages/configshared ESLint/TS config,packages/dbschema and client- Workspace tool:
+ Turborepo
Commands
- Install:
pnpm install(at the root only) - Everything:
pnpm turbo run build lint test - One package:
pnpm turbo run test --filter=@acme/ui - Affected since main:
pnpm turbo run test --filter=...[origin/main] - Dev one app:
pnpm --filter web dev - Add a dependency to one package:
pnpm --filter <package> add <dep>
Rules
- Run tasks through Turborepo with
--filter; do not build the whole repo for a one-package change. - Packages depend on each other through
workspace:*versions, never relative imports across package folders. - Shared code goes in
packages/; apps never import from other apps. - Changing a shared package means running the affected dependents’ tests (
--filter=...<package>). - Each app/package may have its own CLAUDE.md with local commands; read it when working there.
- Do not add a dependency to the root
package.jsonunless it is repo tooling.
Definition of done
pnpm turbo run lint test --filter=...[origin/main]passes for the change.