monorepo-management by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill monorepo-management建立可扩展的单仓库结构,以支持多个相互依赖的包,同时保持构建效率、依赖管理和部署协调。
最小工作示例:
{
"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"
}
}
references/ 目录下的详细实现:
| 指南 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 内容 |
|---|
| Npm Workspaces 配置 | Npm Workspaces 配置, Lerna 配置, Turborepo 配置, Nx Workspace 配置 |
| 单仓库目录结构 | 单仓库目录结构 |
| 工作区依赖 | 工作区依赖 |
| Lerna 命令 | Lerna 命令 |
| Turborepo 命令 | Turborepo 命令 |
| 单仓库的 CI/CD | 单仓库的 CI/CD |
| 跨包版本管理 | 跨包版本管理 |
每周安装数
110
代码仓库
GitHub 星标数
126
首次出现
2026年1月21日
安全审计
安装于
opencode92
gemini-cli91
codex88
cursor85
claude-code82
github-copilot78
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 |
Weekly Installs
110
Repository
GitHub Stars
126
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode92
gemini-cli91
codex88
cursor85
claude-code82
github-copilot78
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
104,900 周安装
| Version Management Across Packages |