Add monorepo export command for standalone buildable output
New command `unpac monorepo` creates a standalone directory containing all
projects and their vendored dependencies, suitable for building with dune.
No git history is included - only the current state of each branch.
Features:
- Exports all projects from project/* branches
- Exports vendored opam packages from opam/patches/* branches
- Exports vendored git repos from git-repos/patches/* branches
- Generates root dune-project and dune files
- Creates unified vendor/ directory with (vendored_dirs opam git)
- Strips vendor/ from individual projects (uses shared root vendor/)
Options:
- -p/--project: Export specific projects (can repeat)
- --no-opam: Exclude vendored opam packages
- --no-git: Exclude vendored git repositories
Usage:
unpac monorepo /path/to/output
cd /path/to/output && dune build
cd /path/to/output && dune build @doc
๐ค Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>