Monorepo Management
Build and scale efficient multi-package repositories using modern tools.
Supported Tools
Read the specific reference based on the project's toolset:
- pnpm Workspaces: Advanced dependency management with Catalogs.
- See references/PNPM.md.
- Turborepo: High-performance task running and caching.
- See references/TURBO.md.
- Nx: Advanced graph analysis and polyglot support.
- See references/NX.md.
- Boundary Enforcement: Architecture safety and dependency rules.
- See references/BOUNDARY.md.
Best Practices
- pnpm Catalogs: Use
catalogsinpnpm-workspace.yamlto centralize dependency versions across the monorepo. - Shared Configs: Centralize ESLint, TS, and Prettier configs in the root or a dedicated
packages/config. - Boundary Enforcement: Use ESLint
no-restricted-importsto forbid relative imports across package boundaries. - Acyclic Graph: Ensure dependencies only flow in one direction using graph analysis tools.