Manage monorepo architectures using Lerna, Turborepo, and Nx. Configure workspaces, dependency versioning, and cross-package testing.
Establish scalable monorepo structures that support multiple interdependent packages while maintaining build efficiency, dependency management, and deployment coordination.
Minimal working example:
{
"name": "monorepo-root",
"version": "1.0.0",
"private": true,
"workspaces": ["packages/*", "apps/*"],
"devDependencies": {
"lerna": "^7.0.0",
"turbo": "^1.10.0"
},
"scripts": {
"lint": "npm run lint -r",
"test": "npm run test -r",
"build": "npm run build -r",
"clean": "npm run clean -r"
}
}
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Npm Workspaces Configuration | Npm Workspaces Configuration, Lerna Configuration, Turborepo Configuration, Nx Workspace Configuration | | Monorepo Directory Structure | Monorepo Directory Structure | | Workspace Dependencies | Workspace Dependencies | | Lerna Commands | Lerna Commands | | Turborepo Commands | Turborepo Commands | | CI/CD for Monorepo | CI/CD for Monorepo | | Version Management Across Packages | Version Management Across Packages |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/monorepo-management · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/monorepo-management"
cp -r "skills/monorepo-management" ".claude/skills/monorepo-management"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.