Skip to main content

Module workspaces

Module workspaces 

Source
Expand description

Workspace member discovery for Cargo, npm/pnpm/yarn, and uv.

Given a workspace root path, returns absolute paths to the manifest file of every published member. Used by the workspace-aware publishers to:

  1. Aggregate registry checks (Completed iff every member is already published).
  2. Drive per-member publish commands for ecosystems without a native publish --workspace flag (cargo, uv).

Non-workspace roots return an empty list.

Functions§

detect_npm_tool
Detect which npm-compatible tool is in use at root. Checks lockfiles in priority order: pnpm > yarn > npm. Returns "npm" as the safe default.
discover_cargo_members
Discover Cargo workspace member manifests (Cargo.toml paths).
discover_npm_members
Discover npm/pnpm/yarn workspace member manifests (package.json paths).
discover_uv_members
Discover uv workspace member manifests (pyproject.toml paths).