Summary
The two things that make Turborepo + pnpm work:
- Task graph: Understands dependencies, runs tasks in the right order and in parallel
- Caching: Same inputs → same outputs → skip re-execution
Setup checklist:
pnpm-workspace.yamlto define workspace packagesturbo.jsontasks withdependsOnandoutputsenvfield for environment variables that affect the build- Remote cache in CI via
TURBO_TOKENandTURBO_TEAM --filter=[main]in PR workflows to test only changed packages
If your builds are slow, the problem is probably tooling configuration, not code. One day to set up Turborepo, 80% reduction in build time. Worth it.