@xelbera/monobuild
v0.1.1
Published
A blazing-fast CLI tool for incremental monorepo builds, supporting Angular, Nx, Yarn workspaces, and more — with dependency-aware sorting, build caching, and customizable build commands.
Maintainers
Readme
monobuild
Smart CLI utility to rebuild projects inside a monorepo based on dependency graph and change detection.
✨ Features
- 🧠 Automatically detects monorepo type (Nx, Angular CLI, Yarn workspaces, etc.)
- 📦 Determines the build order from project dependencies
- ⚡ Rebuilds only what changed (based on timestamp cache)
- 🔨 Supports custom or default build commands per project type
- 🧪 Supports
--self-only,--exclude,--force, and--verbosemodes - 🧰 CLI interface ready for
npx,yarn, or global usage
📦 Installation
npm install --save-dev @xelbera/monobuild
# or use globally:
npm install -g @xelbera/monobuild🚀 Usage
Basic
npx monobuildTarget specific project
npx monobuild --project my-libOnly build the project (not its dependencies)
npx monobuild --project my-lib --self-onlyForce rebuild regardless of cache
npx monobuild --forceExclude projects from build
npx monobuild --exclude lib-a --exclude @scope/utilityCustom build command
npx monobuild --build-cmd "yarn build"🏗️ Default Build Commands
If --build-cmd is not specified, the tool will use a default based on detected monorepo type:
- Angular CLI:
ng build <project> - Nx:
nx build <project> - Workspaces (fallback):
npm run build
📁 Supported Monorepo Types
- Nx (
nx.json) - Angular CLI (
angular.json) - Yarn / NPM Workspaces (
package.jsonwithworkspaces)
📄 License
MIT © xelbera
