The monochange book · User Guide
Discovery
monochange discovers packages from native manifests and workspace definitions. For a capability-by-capability comparison of each adapter, see Ecosystems.
Supported sources:
- Cargo workspaces and standalone crates
- npm workspaces, pnpm workspaces, Bun workspaces, and standalone
package.jsonpackages - Deno workspaces and standalone
deno.json/deno.jsoncpackages - Dart and Flutter workspaces plus standalone
pubspec.yamlpackages - Python uv workspaces, Poetry projects, and standalone
pyproject.tomlpackages - Go modules discovered from standalone
go.modfiles
Run discovery:
Key behaviors:
- native workspace globs are expanded by each ecosystem adapter
- dependency names are normalized into one graph
- package ids and manifest paths in CLI output are rendered relative to the repository root for deterministic automation
- gitignored paths and nested git worktrees are skipped during discovery
- version-group assignments are attached after discovery
- unmatched group members (declared in config but not found during discovery) produce warnings
- unresolvable group members (invalid package IDs in
group.packages) produce errors during configuration loading - discovery scans all supported ecosystems regardless of
[ecosystems.*]toggles inmonochange.toml
Configured package IDs
Different ecosystems can publish the same package name. Give each package a distinct ID in monochange.toml:
[package.shared]
path = "crates/shared"
[package."dart:shared"]
path = "packages/shared"
type = "dart"
An exact configured ID takes precedence over published names. In changesets and version groups, shared selects the Cargo package and dart:shared selects the Dart package. References that do not match an explicit configured ID still resolve by published name, canonical ID, or manifest/directory path; an ambiguous published name remains an error.