Turborepo
Turborepo is a build tool made for monorepo codebases.
Follow their guide to add it to your existing repository.
shell
yarn global add turboInstalling packages
shell
# Add a package to a project
yarn workspace web add reactNote
If you're unsure of what workspaces are available, you can list them:
shell
# Get the workspace tree
yarn workspaces infoThe .turbo folder
Turborepo generates a cache folder both on a project-level and on a repository-level.
Turborepo themselves recommend adding these folders to your .gitignore. Not doing so they consider a pitfall.
gitignore
# Ignore the Turborepo cache
.turbo/
**/.turbo/