import type { VersioningSettings } from '@pnpm/types'; import type { ChangeIntent, ReleaseBumpType } from './intents.js'; import { type Ledger } from './ledger.js'; import type { WorkspaceProject } from './projectRefs.js'; export { indexProjectRefs, isDirRef, privateProjectDirs, type ProjectRefIndex, toProjectDir, type WorkspaceProject, } from './projectRefs.js'; export { checkVersioningInvariants, type CheckVersioningInvariantsOptions, type VersioningInvariantViolation, } from './versioningInvariants.js'; export { materializeWorkspaceRange } from './versionMath.js'; export { type ResolveWorkspaceVersioningOptions, validateVersioningLanes, } from './workspaceVersioning.js'; export type ReleaseCause = 'intent' | 'dependencies' | 'fixed' | 'epic'; export interface DependencyUpdate { name: string; newVersion: string; } export interface PlannedRelease { name: string; /** Workspace-relative project directory, the engine's unit of identity. */ dir: string; rootDir: string; currentVersion: string; newVersion: string; bumpType: ReleaseBumpType; /** * The intent files this release consumes for this package: the pending ones, * plus (when the release graduates the package off a lane) the * ones the ledger recorded against the lane's prerelease versions. */ intents: ChangeIntent[]; dependencyUpdates: DependencyUpdate[]; causes: ReleaseCause[]; } export interface ReleasePlan { releases: PlannedRelease[]; } export interface AssembleReleasePlanOptions { workspaceDir: string; projects: WorkspaceProject[]; intents: ChangeIntent[]; ledger: Ledger; versioning?: VersioningSettings; /** * Workspace-relative directories of the projects selected with --filter. * The plan is narrowed to the selected packages' portion of the pending * work, expanded with their fixed-group companions and range-invalidated * dependents. */ filter?: Set; /** * When set, every planned release gets the version `0.0.0-` instead * of the computed one, matching snapshot releases. */ snapshotSuffix?: string; /** * Enforce that every internal production dependency uses the `workspace:` * protocol, a prerequisite for actually releasing. The release path * (`pnpm version -r`) sets this; read-only callers (`pnpm change status`) * leave it off so a diagnostic never fails on an unmigrated dependency. */ enforceWorkspaceProtocol?: boolean; /** * Directories whose current manifest version the registry does not have. * Their first release publishes that version verbatim, so the pending change * intents bump it only from the next release. Resolved by the command layer's * registry probe. Fixed-group sharing and epic band re-basing still override * it, since a package cannot opt out of those workspace-wide version rules. */ unpublishedDirs?: Set; } export declare function assembleReleasePlan(opts: AssembleReleasePlanOptions): ReleasePlan;