- What's a monorepo?
- One repository containing multiple projects (packages, services, apps). Shared tooling, atomic cross-project commits, single CI config. Popular at large companies.
- When should I use one?
- When packages share types, changesets span multiple projects, or when onboarding benefits from a single clone. Not necessary for single-team, single-product code.
- Turbo vs Nx vs pnpm workspaces?
- pnpm workspaces is the simplest — just package management. Turborepo adds task caching and pipeline. Nx is the most full-featured (generators, plugins, AI-assisted) but has more overhead.
- What are the pitfalls?
- CI time balloons (rebuild everything for every change). Version bumps across many packages need tooling (changesets). Working set in editors can be slow without config tuning.