Skip to content


Why monorepos?

  1. consistency
    1. share config files
    2. ESLint
    3. utils
    4. docs
  2. Dependency management
    1. share node_modules
    2. CI/CD is easier to test/build together

Problem with monorepos?

They're huge

Big tech companies have their own solutions


  • npm/yarn workspaces
  • Lerna: open source multi-package repos

Smart build systems

NX vs Turborepo

  • Create a dependency tree between all the apps
  • smart caching
  • run jobs in parallel
  • remote caching
    • cache can be downloaded remotely

Last update: 2022-09-23