UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

23 lines (22 loc) 1.35 kB
import type { RegistryMetadata } from '../packument'; import { type PickOutcome } from '../pick'; import type { MinReleaseAgePolicy, MinReleaseAgePolicyReadResult } from '../policy'; /** * Reads pnpm's effective cooldown configuration once. The surface set and * precedence depend on the pnpm major: v10 layers npm-conf surfaces * (workspace yaml > npm_config env > project .npmrc > user .npmrc); v11 * layers pnpm-native surfaces (pnpm_config / PNPM_CONFIG env > * pnpm-workspace.yaml > global config.yaml > built-in 1440-minute default). */ export declare function readPnpmPolicy(root: string, pmVersion: string): Promise<MinReleaseAgePolicyReadResult>; /** * pnpm resolution under an active cooldown. Exact pins and ranges mirror pnpm's * resolver; dist-tag degrade uses the shared cross-PM rule: * - exact pin too new -> strict/v10 violation; v11 loose installs it (immature). * - range -> newest mature; none -> v10/strict violation, v11 loose lowest * (least-immature) version unfiltered (immature). * - dist-tag too new -> degrade via the shared channel-aware rule (see * `degradeTagToCompliant` for the ordering); none compliant -> violation * (v11 loose installs the original target immature). */ export declare function pickPnpmVersion(spec: string, metadata: RegistryMetadata, policy: MinReleaseAgePolicy): PickOutcome;