@pnpm/types

  • Version 1102.1.3
  • Published
  • 78.6 kB
  • No dependencies
  • MIT license

Install

npm i @pnpm/types
yarn add @pnpm/types
pnpm add @pnpm/types

Overview

Basic types used by pnpm

Index

Variables

Functions

Interfaces

Type Aliases

Variables

variable DEFAULT_REGISTRY_SCOPE

const DEFAULT_REGISTRY_SCOPE: string;

    variable DEPENDENCIES_FIELDS

    const DEPENDENCIES_FIELDS: DependenciesField[];

      variable DEPENDENCIES_OR_PEER_FIELDS

      const DEPENDENCIES_OR_PEER_FIELDS: DependenciesOrPeersField[];

        variable RUNTIME_NAMES

        const RUNTIME_NAMES: readonly ['node', 'deno', 'bun'];

          Functions

          function isRuntimeAlias

          isRuntimeAlias: (alias: string) => alias is 'node' | 'deno' | 'bun';

            Interfaces

            interface AllowBuildContext

            interface AllowBuildContext {}

              property trustPackageIdentity

              trustPackageIdentity?: boolean;

                interface AuditConfig

                interface AuditConfig {}
                • Deprecated

                  Use AuditSettings instead. Kept for backward compatibility until the next major version.

                property ignoreGhsas

                ignoreGhsas?: string[];

                  interface AuditSettings

                  interface AuditSettings {}

                    property ignore

                    ignore?: string[];
                    • GHSA IDs that pnpm audit should ignore. Supersedes auditConfig.ignoreGhsas.

                    property ignorePrune

                    ignorePrune?: boolean;
                    • When true, pnpm audit --fix removes entries from the ignore list that no longer appear in the audit report, so a re-introduced vulnerability under the same GHSA ID gets re-evaluated instead of staying silently suppressed.

                    property level

                    level?: AuditLevel;
                    • The minimum vulnerability severity pnpm audit reports on. Supersedes the top-level auditLevel setting.

                    interface BadPeerDependencyIssue

                    interface BadPeerDependencyIssue extends MissingPeerDependencyIssue {}

                      property foundVersion

                      foundVersion: string;

                        property resolvedFrom

                        resolvedFrom: ParentPackages;

                          interface BaseManifest

                          interface BaseManifest {}

                            property author

                            author?: string;

                              property bin

                              bin?: PackageBin;

                                property bugs

                                bugs?:
                                | string
                                | {
                                url?: string;
                                email?: string;
                                };

                                  property bundledDependencies

                                  bundledDependencies?: string[] | boolean;

                                    property bundleDependencies

                                    bundleDependencies?: string[] | boolean;

                                      property config

                                      config?: Record<string, unknown>;

                                        property cpu

                                        cpu?: string[];

                                          property dependencies

                                          dependencies?: Dependencies;

                                            property dependenciesMeta

                                            dependenciesMeta?: DependenciesMeta;

                                              property description

                                              description?: string;

                                                property devDependencies

                                                devDependencies?: Dependencies;

                                                  property devEngines

                                                  devEngines?: DevEngines;

                                                    property directories

                                                    directories?: {
                                                    bin?: string;
                                                    };

                                                      property engines

                                                      engines?: {
                                                      node?: string;
                                                      npm?: string;
                                                      pnpm?: string;
                                                      } & Pick<DevEngines, 'runtime'>;

                                                        property exports

                                                        exports?: Record<string, string>;

                                                          property files

                                                          files?: string[];

                                                            property funding

                                                            funding?: string;

                                                              property gypfile

                                                              gypfile?: boolean;
                                                              • false opts the package out of the node-gyp rebuild install script pnpm synthesizes for a package that ships a binding.gyp and declares no install or preinstall script of its own.

                                                                npm documents gypfile as that opt-out, and sets gypfile: true at publish time on every package it synthesizes the script for, so only the false value carries anything pnpm can act on.

                                                                See Also

                                                                • https://docs.npmjs.com/cli/v12/configuring-npm/package-json#gypfile

                                                              property homepage

                                                              homepage?: string;

                                                                property imports

                                                                imports?: Record<string, unknown>;

                                                                  property keywords

                                                                  keywords?: string[];

                                                                    property libc

                                                                    libc?: string[];

                                                                      property license

                                                                      license?: string;

                                                                        property main

                                                                        main?: string;

                                                                          property module

                                                                          module?: string;

                                                                            property name

                                                                            name?: string;

                                                                              property optionalDependencies

                                                                              optionalDependencies?: Dependencies;

                                                                                property os

                                                                                os?: string[];

                                                                                  property peerDependencies

                                                                                  peerDependencies?: Dependencies;

                                                                                    property peerDependenciesMeta

                                                                                    peerDependenciesMeta?: PeerDependenciesMeta;

                                                                                      property publishConfig

                                                                                      publishConfig?: PublishConfig;

                                                                                        property readme

                                                                                        readme?: string;

                                                                                          property repository

                                                                                          repository?:
                                                                                          | string
                                                                                          | {
                                                                                          url: string;
                                                                                          };

                                                                                            property scripts

                                                                                            scripts?: PackageScripts;

                                                                                              property type

                                                                                              type?: string;

                                                                                                property types

                                                                                                types?: string;

                                                                                                  property typesVersions

                                                                                                  typesVersions?: TypesVersions;

                                                                                                    property typings

                                                                                                    typings?: string;

                                                                                                      property version

                                                                                                      version?: string;

                                                                                                        interface BasicAuth

                                                                                                        interface BasicAuth {}
                                                                                                        • Parsed value of _auth of each registry in the rc file.

                                                                                                        property password

                                                                                                        password: string;

                                                                                                          property username

                                                                                                          username: string;

                                                                                                            interface Creds

                                                                                                            interface Creds {}
                                                                                                            • Per-registry authentication credentials.

                                                                                                            property authToken

                                                                                                            authToken?: string;
                                                                                                            • The value of _authToken of each registry in the rc file.

                                                                                                            property basicAuth

                                                                                                            basicAuth?: BasicAuth;
                                                                                                            • Parsed value of _auth of each registry in the rc file.

                                                                                                            property tokenHelper

                                                                                                            tokenHelper?: TokenHelper;
                                                                                                            • Parsed value of tokenHelper of each registry in the rc file.

                                                                                                            interface DependenciesMeta

                                                                                                            interface DependenciesMeta {}

                                                                                                              index signature

                                                                                                              [dependencyName: string]: {
                                                                                                              injected?: boolean;
                                                                                                              patch?: string;
                                                                                                              };

                                                                                                                interface DependencyManifest

                                                                                                                interface DependencyManifest extends BaseManifest {}

                                                                                                                  property name

                                                                                                                  name: string;

                                                                                                                    property version

                                                                                                                    version: string;

                                                                                                                      interface EngineDependency

                                                                                                                      interface EngineDependency {}

                                                                                                                        property name

                                                                                                                        name: string;

                                                                                                                          property onFail

                                                                                                                          onFail?: 'ignore' | 'warn' | 'error' | 'download';

                                                                                                                            property version

                                                                                                                            version?: string;

                                                                                                                              interface FinderContext

                                                                                                                              interface FinderContext {}

                                                                                                                                property alias

                                                                                                                                alias: string;

                                                                                                                                  property name

                                                                                                                                  name: string;

                                                                                                                                    property readManifest

                                                                                                                                    readManifest: () => DependencyManifest;

                                                                                                                                      property version

                                                                                                                                      version: string;

                                                                                                                                        interface MissingPeerDependencyIssue

                                                                                                                                        interface MissingPeerDependencyIssue {}

                                                                                                                                          property optional

                                                                                                                                          optional: boolean;

                                                                                                                                            property parents

                                                                                                                                            parents: ParentPackages;

                                                                                                                                              property wantedRange

                                                                                                                                              wantedRange: string;

                                                                                                                                                interface PackageManifest

                                                                                                                                                interface PackageManifest extends DependencyManifest {}

                                                                                                                                                  property deprecated

                                                                                                                                                  deprecated?: string;

                                                                                                                                                    interface PackageVulnerability

                                                                                                                                                    interface PackageVulnerability {}

                                                                                                                                                      property severity

                                                                                                                                                      severity: VulnerabilitySeverity;
                                                                                                                                                      • The severity of the vulnerability

                                                                                                                                                      property versionRange

                                                                                                                                                      versionRange: string;
                                                                                                                                                      • A semver version range that indicates which versions are vulnerable

                                                                                                                                                      interface PackageVulnerabilityAudit

                                                                                                                                                      interface PackageVulnerabilityAudit {}

                                                                                                                                                        property getVulnerabilities

                                                                                                                                                        getVulnerabilities: () => Map<string, PackageVulnerability[]>;
                                                                                                                                                        • Get all vulnerabilities for all packages.

                                                                                                                                                          Returns

                                                                                                                                                          A map where the keys are package names and the values are arrays of vulnerabilities for those packages.

                                                                                                                                                        property isVulnerable

                                                                                                                                                        isVulnerable: (packageName: string, version: string) => boolean;
                                                                                                                                                        • Check if the given package version is vulnerable.

                                                                                                                                                        interface PeerDependenciesMeta

                                                                                                                                                        interface PeerDependenciesMeta {}

                                                                                                                                                          index signature

                                                                                                                                                          [dependencyName: string]: {
                                                                                                                                                          optional?: boolean;
                                                                                                                                                          };

                                                                                                                                                            interface PeerDependencyIssues

                                                                                                                                                            interface PeerDependencyIssues {}

                                                                                                                                                              property bad

                                                                                                                                                              bad: BadPeerIssuesByPeerName;

                                                                                                                                                                property conflicts

                                                                                                                                                                conflicts: string[];

                                                                                                                                                                  property intersections

                                                                                                                                                                  intersections: Record<string, string>;

                                                                                                                                                                    property missing

                                                                                                                                                                    missing: MissingPeerIssuesByPeerName;

                                                                                                                                                                      interface PeerDependencyRules

                                                                                                                                                                      interface PeerDependencyRules {}

                                                                                                                                                                        property allowAny

                                                                                                                                                                        allowAny?: string[];

                                                                                                                                                                          property allowedVersions

                                                                                                                                                                          allowedVersions?: Record<string, string>;

                                                                                                                                                                            property ignoreMissing

                                                                                                                                                                            ignoreMissing?: string[];

                                                                                                                                                                              interface PnpmSettings

                                                                                                                                                                              interface PnpmSettings {}

                                                                                                                                                                                property allowBuilds

                                                                                                                                                                                allowBuilds?: Record<string, boolean | string>;

                                                                                                                                                                                  property allowedDeprecatedVersions

                                                                                                                                                                                  allowedDeprecatedVersions?: AllowedDeprecatedVersions;

                                                                                                                                                                                    property allowUnusedPatches

                                                                                                                                                                                    allowUnusedPatches?: boolean;

                                                                                                                                                                                      property audit

                                                                                                                                                                                      audit?: AuditSettings;

                                                                                                                                                                                        property auditConfig

                                                                                                                                                                                        auditConfig?: AuditConfig;
                                                                                                                                                                                        • Deprecated

                                                                                                                                                                                          Use PnpmSettings.audit instead. Kept for backward compatibility until the next major version.

                                                                                                                                                                                        property autoInstallPeersFromHighestMatch

                                                                                                                                                                                        autoInstallPeersFromHighestMatch?: boolean;

                                                                                                                                                                                          property configDependencies

                                                                                                                                                                                          configDependencies?: ConfigDependencies;

                                                                                                                                                                                            property enableGlobalVirtualStore

                                                                                                                                                                                            enableGlobalVirtualStore?: boolean;

                                                                                                                                                                                            property externalDependencies

                                                                                                                                                                                            externalDependencies?: string[];

                                                                                                                                                                                              property httpProxy

                                                                                                                                                                                              httpProxy?: string;

                                                                                                                                                                                                property httpsProxy

                                                                                                                                                                                                httpsProxy?: string;

                                                                                                                                                                                                  property ignoredOptionalDependencies

                                                                                                                                                                                                  ignoredOptionalDependencies?: string[];

                                                                                                                                                                                                    property localAddress

                                                                                                                                                                                                    localAddress?: string;

                                                                                                                                                                                                      property namedRegistries

                                                                                                                                                                                                      namedRegistries?: Record<string, string>;
                                                                                                                                                                                                      • Deprecated

                                                                                                                                                                                                        Give the registry a prefix in PnpmSettings.registries instead. Kept working until the next major version.

                                                                                                                                                                                                      property nodeDownloadMirrors

                                                                                                                                                                                                      nodeDownloadMirrors?: Record<string, string>;

                                                                                                                                                                                                        property noProxy

                                                                                                                                                                                                        noProxy?: string | boolean;

                                                                                                                                                                                                          property npmrcAuthFile

                                                                                                                                                                                                          npmrcAuthFile?: string;

                                                                                                                                                                                                            property overrides

                                                                                                                                                                                                            overrides?: Record<string, string>;

                                                                                                                                                                                                              property packageExtensions

                                                                                                                                                                                                              packageExtensions?: Record<string, PackageExtension>;

                                                                                                                                                                                                                property patchedDependencies

                                                                                                                                                                                                                patchedDependencies?: Record<string, string>;

                                                                                                                                                                                                                  property peerDependencyRules

                                                                                                                                                                                                                  peerDependencyRules?: PeerDependencyRules;

                                                                                                                                                                                                                    property pnprServer

                                                                                                                                                                                                                    pnprServer?: string;

                                                                                                                                                                                                                      property registries

                                                                                                                                                                                                                      registries?: Record<string, RegistryDeclaration> | RegistriesByScope;
                                                                                                                                                                                                                      • The registries the project declares, keyed by registry URL, so that a registry's layout, the scopes routed to it, and the bare-specifier prefix it answers to are all stated once, in one place.

                                                                                                                                                                                                                        A map whose values are plain strings is the older scope: url shape and is read as one.

                                                                                                                                                                                                                      property remoteSideEffectsCache

                                                                                                                                                                                                                      remoteSideEffectsCache?: RemoteSideEffectsCacheSettings;
                                                                                                                                                                                                                      • The alternative spelling of SideEffectsCacheSettings.remote. A field set under both takes its value from there; a field set under only one is kept either way.

                                                                                                                                                                                                                      property requiredScripts

                                                                                                                                                                                                                      requiredScripts?: string[];

                                                                                                                                                                                                                        property sideEffectsCache

                                                                                                                                                                                                                        sideEffectsCache?: boolean | SideEffectsCacheSettings;
                                                                                                                                                                                                                        • Whether a package's build output is reused, and where from. A boolean sets read and write together.

                                                                                                                                                                                                                        property strictSsl

                                                                                                                                                                                                                        strictSsl?: boolean;

                                                                                                                                                                                                                          property supportedArchitectures

                                                                                                                                                                                                                          supportedArchitectures?: SupportedArchitectures;

                                                                                                                                                                                                                            property tasks

                                                                                                                                                                                                                            tasks?: WorkspaceTasks;

                                                                                                                                                                                                                              property update

                                                                                                                                                                                                                              update?: UpdateSettings;

                                                                                                                                                                                                                                property updateConfig

                                                                                                                                                                                                                                updateConfig?: {
                                                                                                                                                                                                                                changeset?: boolean;
                                                                                                                                                                                                                                ignoreDependencies?: string[];
                                                                                                                                                                                                                                githubActions?: boolean;
                                                                                                                                                                                                                                githubActionsServer?: string;
                                                                                                                                                                                                                                };
                                                                                                                                                                                                                                • Deprecated

                                                                                                                                                                                                                                  Use PnpmSettings.update instead. Kept for backward compatibility until the next major version.

                                                                                                                                                                                                                                property versioning

                                                                                                                                                                                                                                versioning?: VersioningSettings;

                                                                                                                                                                                                                                  property virtualStoreType

                                                                                                                                                                                                                                  virtualStoreType?: VirtualStoreType;
                                                                                                                                                                                                                                  • Where the virtual store lives, and therefore who shares it: one store per machine (global) or one per project (project).

                                                                                                                                                                                                                                    The canonical spelling of PnpmSettings.enableGlobalVirtualStore. When both are set, this one wins.

                                                                                                                                                                                                                                  interface Project

                                                                                                                                                                                                                                  interface Project {}

                                                                                                                                                                                                                                    property manifest

                                                                                                                                                                                                                                    manifest: ProjectManifest;

                                                                                                                                                                                                                                      property modulesDir

                                                                                                                                                                                                                                      modulesDir?: string;

                                                                                                                                                                                                                                        property rootDir

                                                                                                                                                                                                                                        rootDir: ProjectRootDir;

                                                                                                                                                                                                                                          property rootDirRealPath

                                                                                                                                                                                                                                          rootDirRealPath: ProjectRootDirRealPath;

                                                                                                                                                                                                                                            property writeProjectManifest

                                                                                                                                                                                                                                            writeProjectManifest: (
                                                                                                                                                                                                                                            manifest: ProjectManifest,
                                                                                                                                                                                                                                            force?: boolean | undefined
                                                                                                                                                                                                                                            ) => Promise<void>;

                                                                                                                                                                                                                                              interface ProjectManifest

                                                                                                                                                                                                                                              interface ProjectManifest extends BaseManifest {}

                                                                                                                                                                                                                                                property packageManager

                                                                                                                                                                                                                                                packageManager?: string;

                                                                                                                                                                                                                                                  property private

                                                                                                                                                                                                                                                  private?: boolean;

                                                                                                                                                                                                                                                    property resolutions

                                                                                                                                                                                                                                                    resolutions?: Record<string, string>;

                                                                                                                                                                                                                                                      property workspaces

                                                                                                                                                                                                                                                      workspaces?: string[];

                                                                                                                                                                                                                                                        interface PublishConfig

                                                                                                                                                                                                                                                        interface PublishConfig extends Record<string, unknown> {}

                                                                                                                                                                                                                                                          property access

                                                                                                                                                                                                                                                          access?: 'public' | 'restricted';

                                                                                                                                                                                                                                                            property directory

                                                                                                                                                                                                                                                            directory?: string;

                                                                                                                                                                                                                                                              property executableFiles

                                                                                                                                                                                                                                                              executableFiles?: string[];

                                                                                                                                                                                                                                                                property linkDirectory

                                                                                                                                                                                                                                                                linkDirectory?: boolean;

                                                                                                                                                                                                                                                                  property name

                                                                                                                                                                                                                                                                  name?: string;
                                                                                                                                                                                                                                                                  • Publishes the package under a different name than the one its manifest carries in the workspace — for a project whose name is already taken by a sibling. Only the published artifact is renamed; dependents, the lockfile, and release tooling keep addressing the project by its manifest name.

                                                                                                                                                                                                                                                                  property registry

                                                                                                                                                                                                                                                                  registry?: string;

                                                                                                                                                                                                                                                                    interface RegistriesByPrefix

                                                                                                                                                                                                                                                                    interface RegistriesByPrefix {}
                                                                                                                                                                                                                                                                    • The required keys are the enforcement: a raw registriesByPrefix from user config does not satisfy this type, so it cannot reach a consumer without passing through normalizeRegistriesByPrefix. Widening it is how adding a built-in gets acknowledged.

                                                                                                                                                                                                                                                                    property gh

                                                                                                                                                                                                                                                                    gh: string;

                                                                                                                                                                                                                                                                      property npmjs

                                                                                                                                                                                                                                                                      npmjs: string;

                                                                                                                                                                                                                                                                        index signature

                                                                                                                                                                                                                                                                        [name: string]: string;

                                                                                                                                                                                                                                                                          interface RegistriesByScope

                                                                                                                                                                                                                                                                          interface RegistriesByScope {}

                                                                                                                                                                                                                                                                            property default

                                                                                                                                                                                                                                                                            default: string;

                                                                                                                                                                                                                                                                              index signature

                                                                                                                                                                                                                                                                              [scope: string]: string;

                                                                                                                                                                                                                                                                                interface RegistryConfig

                                                                                                                                                                                                                                                                                interface RegistryConfig {}
                                                                                                                                                                                                                                                                                • Per-registry configuration (credentials + TLS).

                                                                                                                                                                                                                                                                                property tls

                                                                                                                                                                                                                                                                                tls?: TlsConfig;

                                                                                                                                                                                                                                                                                  index signature

                                                                                                                                                                                                                                                                                  [scope: `@${string}`]: Creds | undefined;

                                                                                                                                                                                                                                                                                    interface RegistryContext

                                                                                                                                                                                                                                                                                    interface RegistryContext {}
                                                                                                                                                                                                                                                                                    • Everything needed to decide which registry a package came from and what that registry does: the scope-routed URLs, the <name>:-addressed aliases, and the declared per-registry settings.

                                                                                                                                                                                                                                                                                      Mixed into an options type (RegistryContext & { ... }) rather than spelled out field by field, so that a new per-registry setting reaches every consumer by being added here. Forward it with pickRegistryContext for the same reason: dropping a field is silent — the tarball URL is rebuilt in the wrong layout — so neither end should be written out by hand.

                                                                                                                                                                                                                                                                                    property lockedRegistriesByScope

                                                                                                                                                                                                                                                                                    lockedRegistriesByScope?: Record<string, string>;
                                                                                                                                                                                                                                                                                    • The scope routes the lockfile's plain keys resolved through, as the workspace state recorded them (see WorkspaceStateSettings.registryRoutes, which says why the default registry is not among them). A plain key names no registry, so this is the only record of where its package came from; left out, every plain key reads as resolved through registriesByScope.

                                                                                                                                                                                                                                                                                    property registriesByPrefix

                                                                                                                                                                                                                                                                                    registriesByPrefix?: Record<string, string>;
                                                                                                                                                                                                                                                                                    • As the user wrote it; built-in aliases are merged in at lookup.

                                                                                                                                                                                                                                                                                    property registriesByScope

                                                                                                                                                                                                                                                                                    registriesByScope: RegistriesByScope;

                                                                                                                                                                                                                                                                                      property registryOptionsByUrl

                                                                                                                                                                                                                                                                                      registryOptionsByUrl?: Record<string, RegistryOptions>;

                                                                                                                                                                                                                                                                                        interface RegistryDeclaration

                                                                                                                                                                                                                                                                                        interface RegistryDeclaration extends RegistryOptions {}
                                                                                                                                                                                                                                                                                        • One entry of the registries setting: everything a project declares about a registry, keyed by its URL so each fact is stated once.

                                                                                                                                                                                                                                                                                          scopes and prefix are the routes *to* the registry, and are inverted into RegistriesByScope and RegistriesByPrefix when the config is read — a scope resolves to one registry, but a registry serves many, so the declaration reads the way it is written and each lookup keeps the shape it is queried in.

                                                                                                                                                                                                                                                                                        property aliases

                                                                                                                                                                                                                                                                                        aliases?: string[];
                                                                                                                                                                                                                                                                                        • The other prefixes routed to this registry. A pnpr request carries them, the registries setting refuses them: prefix keeps the smallest, the one lockfile keys carry.

                                                                                                                                                                                                                                                                                        property prefix

                                                                                                                                                                                                                                                                                        prefix?: string;
                                                                                                                                                                                                                                                                                        • The bare-specifier prefix this registry answers to, as in "foo": "work:^1.0.0". The prefix is the registry's identity in a lockfile dep path (foo@work:1.0.0).

                                                                                                                                                                                                                                                                                        property scopes

                                                                                                                                                                                                                                                                                        scopes?: string[];
                                                                                                                                                                                                                                                                                        • The scopes routed here, @-prefixed. DEFAULT_REGISTRY_SCOPE (a bare @) is the registry packages resolve from when no scope matches, the same registry the registry setting names.

                                                                                                                                                                                                                                                                                        interface RegistryOptions

                                                                                                                                                                                                                                                                                        interface RegistryOptions {}
                                                                                                                                                                                                                                                                                        • Non-secret, per-registry settings from the registries setting. Held apart from RegistryConfig so the install and lockfile layers can be handed a registry's layout without also being handed its credentials.

                                                                                                                                                                                                                                                                                        property serverType

                                                                                                                                                                                                                                                                                        serverType?: RegistryServerType;

                                                                                                                                                                                                                                                                                          property supportsTimeField

                                                                                                                                                                                                                                                                                          supportsTimeField?: boolean;
                                                                                                                                                                                                                                                                                          • Whether this registry's abbreviated metadata carries the time field.

                                                                                                                                                                                                                                                                                            registry.npmjs.org does not, which is why the default is false and why a time-based resolution falls back to the far larger full metadata. A registry that does carry it — Verdaccio and several proxies — is worth declaring: the fallback is per registry, so one that needs full metadata no longer costs it at the others.

                                                                                                                                                                                                                                                                                          interface RemoteSideEffectsCacheSettings

                                                                                                                                                                                                                                                                                          interface RemoteSideEffectsCacheSettings {}
                                                                                                                                                                                                                                                                                          • Organization-owned dependency build artifacts eligible for this workspace.

                                                                                                                                                                                                                                                                                            trustedKeys and privateKey are the signing trust root and must not come from a committed file: the config reader accepts them only from the global config yaml, the environment, and CLI flags, and rejects them in pnpm-workspace.yaml.

                                                                                                                                                                                                                                                                                          property architectureBaseline

                                                                                                                                                                                                                                                                                          architectureBaseline?: string;

                                                                                                                                                                                                                                                                                            property buildEnv

                                                                                                                                                                                                                                                                                            buildEnv?: Record<string, string>;

                                                                                                                                                                                                                                                                                              property builderId

                                                                                                                                                                                                                                                                                              builderId?: string;

                                                                                                                                                                                                                                                                                                property imageDigest

                                                                                                                                                                                                                                                                                                imageDigest?: string;

                                                                                                                                                                                                                                                                                                  property keyId

                                                                                                                                                                                                                                                                                                  keyId?: string;
                                                                                                                                                                                                                                                                                                  • Identifies which of the consumer's trusted keys signed a published artifact.

                                                                                                                                                                                                                                                                                                  property org

                                                                                                                                                                                                                                                                                                  org?: string;
                                                                                                                                                                                                                                                                                                  • Both halves are optional because one section is assembled from several sources: the repository names the eligible organization and packages while the machine supplies the trust root. The feature applies only once both halves are present.

                                                                                                                                                                                                                                                                                                  property organization

                                                                                                                                                                                                                                                                                                  organization?: string;

                                                                                                                                                                                                                                                                                                  property packages

                                                                                                                                                                                                                                                                                                  packages?: string[];

                                                                                                                                                                                                                                                                                                    property privateKey

                                                                                                                                                                                                                                                                                                    privateKey?: string;
                                                                                                                                                                                                                                                                                                    • Base64-encoded PKCS#8 P-256 private key used to sign published artifacts.

                                                                                                                                                                                                                                                                                                    property publish

                                                                                                                                                                                                                                                                                                    publish?: boolean;
                                                                                                                                                                                                                                                                                                    • Publish the lifecycle-script diff of every eligible package that is built.

                                                                                                                                                                                                                                                                                                    property trustedKeys

                                                                                                                                                                                                                                                                                                    trustedKeys?: Record<string, string>;
                                                                                                                                                                                                                                                                                                    • Base64-encoded P-256 SubjectPublicKeyInfo DER, keyed by key id.

                                                                                                                                                                                                                                                                                                    interface SideEffectsCacheSettings

                                                                                                                                                                                                                                                                                                    interface SideEffectsCacheSettings {}
                                                                                                                                                                                                                                                                                                    • Where a dependency's build output may be reused from: this machine, and — through remote — other machines in the same organization.

                                                                                                                                                                                                                                                                                                    property read

                                                                                                                                                                                                                                                                                                    read?: boolean;
                                                                                                                                                                                                                                                                                                    • Restore a package's build from the cache when one is present.

                                                                                                                                                                                                                                                                                                    property remote

                                                                                                                                                                                                                                                                                                    remote?: RemoteSideEffectsCacheSettings;

                                                                                                                                                                                                                                                                                                      property write

                                                                                                                                                                                                                                                                                                      write?: boolean;
                                                                                                                                                                                                                                                                                                      • Save a package's build output to the cache.

                                                                                                                                                                                                                                                                                                      interface SupportedArchitectures

                                                                                                                                                                                                                                                                                                      interface SupportedArchitectures {}

                                                                                                                                                                                                                                                                                                        property cpu

                                                                                                                                                                                                                                                                                                        cpu?: string[];

                                                                                                                                                                                                                                                                                                          property libc

                                                                                                                                                                                                                                                                                                          libc?: string[];

                                                                                                                                                                                                                                                                                                            property os

                                                                                                                                                                                                                                                                                                            os?: string[];

                                                                                                                                                                                                                                                                                                              interface TlsConfig

                                                                                                                                                                                                                                                                                                              interface TlsConfig {}
                                                                                                                                                                                                                                                                                                              • Per-registry TLS configuration.

                                                                                                                                                                                                                                                                                                              property ca

                                                                                                                                                                                                                                                                                                              ca?: string;
                                                                                                                                                                                                                                                                                                              • Certificate authority (PEM).

                                                                                                                                                                                                                                                                                                              property cert

                                                                                                                                                                                                                                                                                                              cert?: string;
                                                                                                                                                                                                                                                                                                              • Client certificate (PEM).

                                                                                                                                                                                                                                                                                                              property key

                                                                                                                                                                                                                                                                                                              key?: string;
                                                                                                                                                                                                                                                                                                              • Client private key (PEM).

                                                                                                                                                                                                                                                                                                              interface TypesVersions

                                                                                                                                                                                                                                                                                                              interface TypesVersions {}

                                                                                                                                                                                                                                                                                                                index signature

                                                                                                                                                                                                                                                                                                                [version: Version]: {
                                                                                                                                                                                                                                                                                                                [pattern: Pattern]: string[];
                                                                                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                                                                                  interface UpdateSettings

                                                                                                                                                                                                                                                                                                                  interface UpdateSettings {}

                                                                                                                                                                                                                                                                                                                    property changeset

                                                                                                                                                                                                                                                                                                                    changeset?: boolean;
                                                                                                                                                                                                                                                                                                                    • Generate a changeset for the updated production dependencies by default, as if pnpm update were run with --changeset.

                                                                                                                                                                                                                                                                                                                    property githubActions

                                                                                                                                                                                                                                                                                                                    githubActions?: boolean;
                                                                                                                                                                                                                                                                                                                    • Whether pnpm outdated and pnpm update should also look at the GitHub Actions referenced by the workflow files. Opt-in: neither command reads them unless this is set to true or --include-github-actions is passed.

                                                                                                                                                                                                                                                                                                                    property githubActionsServer

                                                                                                                                                                                                                                                                                                                    githubActionsServer?: string;
                                                                                                                                                                                                                                                                                                                    • The base URL of the GitHub server that hosts the repositories of the GitHub Actions referenced by the workflow files (for example, a GitHub Enterprise Server). When not set, the GITHUB_SERVER_URL environment variable is used, falling back to https://github.com.

                                                                                                                                                                                                                                                                                                                    property ignoreDeps

                                                                                                                                                                                                                                                                                                                    ignoreDeps?: string[];
                                                                                                                                                                                                                                                                                                                    • Dependency name patterns that pnpm update and pnpm outdated should skip.

                                                                                                                                                                                                                                                                                                                    interface VersioningChangelogSettings

                                                                                                                                                                                                                                                                                                                    interface VersioningChangelogSettings {}

                                                                                                                                                                                                                                                                                                                      property format

                                                                                                                                                                                                                                                                                                                      format?: string;

                                                                                                                                                                                                                                                                                                                        property storage

                                                                                                                                                                                                                                                                                                                        storage?: VersioningChangelogStorage;
                                                                                                                                                                                                                                                                                                                        • Where release changelogs live. Defaults to registry: no CHANGELOG.md is committed; each release's section is composed at publish time and packed into the published tarball, on top of the previously published version's changelog. repository keeps a committed CHANGELOG.md in every package.

                                                                                                                                                                                                                                                                                                                        interface VersioningEpic

                                                                                                                                                                                                                                                                                                                        interface VersioningEpic {}
                                                                                                                                                                                                                                                                                                                        • An epic ties a group of member packages to a lead package, constraining every member's major version to the band derived from the lead's major: while the lead is on major M, members live in M×100 ... M×100+99. Members move independently inside the band; when a release plan takes the lead to a new stable major, every member re-bases to the band floor in the same plan.

                                                                                                                                                                                                                                                                                                                        property lead

                                                                                                                                                                                                                                                                                                                        lead: string;
                                                                                                                                                                                                                                                                                                                        • The package whose major version defines the band, referenced by name or by ./-prefixed workspace directory (e.g. pnpm).

                                                                                                                                                                                                                                                                                                                        property packages

                                                                                                                                                                                                                                                                                                                        packages: string[];
                                                                                                                                                                                                                                                                                                                        • Selectors matching the member packages: name globs, ./-prefixed directory globs, and !-prefixed negations, following pnpm's selector conventions (e.g. ["./pnpm11/**", "!./pnpm11/private/**"]).

                                                                                                                                                                                                                                                                                                                        interface VersioningSettings

                                                                                                                                                                                                                                                                                                                        interface VersioningSettings {}
                                                                                                                                                                                                                                                                                                                        • Settings for native workspace release management, declared under the versioning key of pnpm-workspace.yaml.

                                                                                                                                                                                                                                                                                                                        property changelog

                                                                                                                                                                                                                                                                                                                        changelog?: VersioningChangelogSettings;

                                                                                                                                                                                                                                                                                                                          property epics

                                                                                                                                                                                                                                                                                                                          epics?: VersioningEpic[];
                                                                                                                                                                                                                                                                                                                          • Epics that band member packages' majors to a lead package's major.

                                                                                                                                                                                                                                                                                                                          property fixed

                                                                                                                                                                                                                                                                                                                          fixed?: string[][];
                                                                                                                                                                                                                                                                                                                          • Groups of packages that always release together at one shared version.

                                                                                                                                                                                                                                                                                                                          property ignore

                                                                                                                                                                                                                                                                                                                          ignore?: string[];
                                                                                                                                                                                                                                                                                                                          • Packages permanently excluded from versioning and dependent propagation.

                                                                                                                                                                                                                                                                                                                          property lanes

                                                                                                                                                                                                                                                                                                                          lanes?: Record<string, string>;
                                                                                                                                                                                                                                                                                                                          • Per-package release lanes: maps a package name to the lane it is on (e.g. "@example/cli": "alpha"). A lane is a parallel release track that emits X.Y.Z-tag.N prereleases; every unlisted package is on the reserved default lane, main, and releases stable versions.

                                                                                                                                                                                                                                                                                                                          property maxBump

                                                                                                                                                                                                                                                                                                                          maxBump?: VersioningBumpType;
                                                                                                                                                                                                                                                                                                                          • Caps the bump a release from the current checkout may apply. Enforced on the final assembled release plan, after dependent propagation and fixed-group resolution.

                                                                                                                                                                                                                                                                                                                          interface WorkspaceTasks

                                                                                                                                                                                                                                                                                                                          interface WorkspaceTasks {}
                                                                                                                                                                                                                                                                                                                          • The task declarations of a workspace, keyed by task name. A task name is a script name: pnpm -r run <name> runs the task named <name> in every selected project.

                                                                                                                                                                                                                                                                                                                          index signature

                                                                                                                                                                                                                                                                                                                          [taskName: string]: WorkspaceTaskSettings;

                                                                                                                                                                                                                                                                                                                            interface WorkspaceTaskSettings

                                                                                                                                                                                                                                                                                                                            interface WorkspaceTaskSettings {}

                                                                                                                                                                                                                                                                                                                              property concurrency

                                                                                                                                                                                                                                                                                                                              concurrency?: number;

                                                                                                                                                                                                                                                                                                                                property dependsOn

                                                                                                                                                                                                                                                                                                                                dependsOn?: string[];
                                                                                                                                                                                                                                                                                                                                • The tasks that must complete before this one may start. A ^name entry names the task in each of the project's workspace dependencies; a bare name entry names the task in the same project.

                                                                                                                                                                                                                                                                                                                                  A task with no declaration behaves as dependsOn: ['^<its own name>']. An entry with dependsOn omitted declares an empty dependency list — the task depends on nothing and may start immediately.

                                                                                                                                                                                                                                                                                                                                Type Aliases

                                                                                                                                                                                                                                                                                                                                type AllowBuild

                                                                                                                                                                                                                                                                                                                                type AllowBuild = (
                                                                                                                                                                                                                                                                                                                                depPath: DepPath,
                                                                                                                                                                                                                                                                                                                                context?: AllowBuildContext
                                                                                                                                                                                                                                                                                                                                ) => boolean | undefined;

                                                                                                                                                                                                                                                                                                                                  type AllowedDeprecatedVersions

                                                                                                                                                                                                                                                                                                                                  type AllowedDeprecatedVersions = Record<string, string>;

                                                                                                                                                                                                                                                                                                                                    type AuditLevel

                                                                                                                                                                                                                                                                                                                                    type AuditLevel = 'info' | 'low' | 'moderate' | 'high' | 'critical';

                                                                                                                                                                                                                                                                                                                                      type BadPeerIssuesByPeerName

                                                                                                                                                                                                                                                                                                                                      type BadPeerIssuesByPeerName = Record<string, BadPeerDependencyIssue[]>;

                                                                                                                                                                                                                                                                                                                                        type BeforePackingHook

                                                                                                                                                                                                                                                                                                                                        type BeforePackingHook = <Pkg extends BaseManifest>(
                                                                                                                                                                                                                                                                                                                                        pkg: Pkg,
                                                                                                                                                                                                                                                                                                                                        dir: string
                                                                                                                                                                                                                                                                                                                                        ) => Pkg | Promise<Pkg>;

                                                                                                                                                                                                                                                                                                                                          type BundledManifest

                                                                                                                                                                                                                                                                                                                                          type BundledManifest = Pick<
                                                                                                                                                                                                                                                                                                                                          BaseManifest,
                                                                                                                                                                                                                                                                                                                                          | 'bin'
                                                                                                                                                                                                                                                                                                                                          | 'bundledDependencies'
                                                                                                                                                                                                                                                                                                                                          | 'bundleDependencies'
                                                                                                                                                                                                                                                                                                                                          | 'cpu'
                                                                                                                                                                                                                                                                                                                                          | 'dependencies'
                                                                                                                                                                                                                                                                                                                                          | 'devDependencies'
                                                                                                                                                                                                                                                                                                                                          | 'directories'
                                                                                                                                                                                                                                                                                                                                          | 'engines'
                                                                                                                                                                                                                                                                                                                                          | 'gypfile'
                                                                                                                                                                                                                                                                                                                                          | 'libc'
                                                                                                                                                                                                                                                                                                                                          | 'name'
                                                                                                                                                                                                                                                                                                                                          | 'optionalDependencies'
                                                                                                                                                                                                                                                                                                                                          | 'os'
                                                                                                                                                                                                                                                                                                                                          | 'peerDependencies'
                                                                                                                                                                                                                                                                                                                                          | 'peerDependenciesMeta'
                                                                                                                                                                                                                                                                                                                                          | 'scripts'
                                                                                                                                                                                                                                                                                                                                          | 'version'
                                                                                                                                                                                                                                                                                                                                          >;
                                                                                                                                                                                                                                                                                                                                          • Subset of package.json fields cached in the store index. Used for bin linking, build scripts, runtime selection, and dependency resolution.

                                                                                                                                                                                                                                                                                                                                          type ConfigDependencies

                                                                                                                                                                                                                                                                                                                                          type ConfigDependencies = Record<
                                                                                                                                                                                                                                                                                                                                          string,
                                                                                                                                                                                                                                                                                                                                          | VersionWithIntegrity
                                                                                                                                                                                                                                                                                                                                          | {
                                                                                                                                                                                                                                                                                                                                          tarball?: string;
                                                                                                                                                                                                                                                                                                                                          integrity: VersionWithIntegrity;
                                                                                                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                                                                                                          >;
                                                                                                                                                                                                                                                                                                                                          • Old format (inline integrity in pnpm-workspace.yaml): "@my-org/cfg": "1.2.0+sha512-XYZ" or { tarball: "...", integrity: "1.2.0+sha512-XYZ" }

                                                                                                                                                                                                                                                                                                                                            New format (plain specifiers in pnpm-workspace.yaml, integrity in pnpm-lock.yaml): "@my-org/cfg": "^1.2.0"

                                                                                                                                                                                                                                                                                                                                          type ConfigDependencySpecifiers

                                                                                                                                                                                                                                                                                                                                          type ConfigDependencySpecifiers = Record<string, string>;
                                                                                                                                                                                                                                                                                                                                          • Clean specifiers for configDependencies in pnpm-workspace.yaml (new format). Integrity info is stored in pnpm-lock.yaml instead.

                                                                                                                                                                                                                                                                                                                                          type Dependencies

                                                                                                                                                                                                                                                                                                                                          type Dependencies = Record<string, string>;

                                                                                                                                                                                                                                                                                                                                            type DependenciesField

                                                                                                                                                                                                                                                                                                                                            type DependenciesField = 'optionalDependencies' | 'dependencies' | 'devDependencies';

                                                                                                                                                                                                                                                                                                                                              type DependenciesOrPeersField

                                                                                                                                                                                                                                                                                                                                              type DependenciesOrPeersField = DependenciesField | 'peerDependencies';

                                                                                                                                                                                                                                                                                                                                                type DepPath

                                                                                                                                                                                                                                                                                                                                                type DepPath = string & {
                                                                                                                                                                                                                                                                                                                                                __brand: 'DepPath';
                                                                                                                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                                                                                                                  type DevEngines

                                                                                                                                                                                                                                                                                                                                                  type DevEngines = Partial<
                                                                                                                                                                                                                                                                                                                                                  Record<DevEngineKey, EngineDependency | EngineDependency[]>
                                                                                                                                                                                                                                                                                                                                                  >;

                                                                                                                                                                                                                                                                                                                                                    type Finder

                                                                                                                                                                                                                                                                                                                                                    type Finder = (ctx: FinderContext) => boolean | string;

                                                                                                                                                                                                                                                                                                                                                      type HoistedDependencies

                                                                                                                                                                                                                                                                                                                                                      type HoistedDependencies = Record<
                                                                                                                                                                                                                                                                                                                                                      DepPath | ProjectId,
                                                                                                                                                                                                                                                                                                                                                      Record<string, 'public' | 'private'>
                                                                                                                                                                                                                                                                                                                                                      >;

                                                                                                                                                                                                                                                                                                                                                        type IgnoredBuilds

                                                                                                                                                                                                                                                                                                                                                        type IgnoredBuilds = Set<DepPath>;

                                                                                                                                                                                                                                                                                                                                                          type IncludedDependencies

                                                                                                                                                                                                                                                                                                                                                          type IncludedDependencies = {
                                                                                                                                                                                                                                                                                                                                                          [dependenciesField in DependenciesField]: boolean;
                                                                                                                                                                                                                                                                                                                                                          } & {
                                                                                                                                                                                                                                                                                                                                                          peerDependencies?: boolean;
                                                                                                                                                                                                                                                                                                                                                          };

                                                                                                                                                                                                                                                                                                                                                            type LogBase

                                                                                                                                                                                                                                                                                                                                                            type LogBase =
                                                                                                                                                                                                                                                                                                                                                            | {
                                                                                                                                                                                                                                                                                                                                                            level: 'debug' | 'error';
                                                                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                                                                            | {
                                                                                                                                                                                                                                                                                                                                                            level: 'info' | 'warn';
                                                                                                                                                                                                                                                                                                                                                            prefix: string;
                                                                                                                                                                                                                                                                                                                                                            message: string;
                                                                                                                                                                                                                                                                                                                                                            };

                                                                                                                                                                                                                                                                                                                                                              type MissingPeerIssuesByPeerName

                                                                                                                                                                                                                                                                                                                                                              type MissingPeerIssuesByPeerName = Record<string, MissingPeerDependencyIssue[]>;

                                                                                                                                                                                                                                                                                                                                                                type PackageBin

                                                                                                                                                                                                                                                                                                                                                                type PackageBin =
                                                                                                                                                                                                                                                                                                                                                                | string
                                                                                                                                                                                                                                                                                                                                                                | {
                                                                                                                                                                                                                                                                                                                                                                [commandName: string]: string;
                                                                                                                                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                                                                                                                                  type PackageExtension

                                                                                                                                                                                                                                                                                                                                                                  type PackageExtension = Pick<
                                                                                                                                                                                                                                                                                                                                                                  BaseManifest,
                                                                                                                                                                                                                                                                                                                                                                  | 'dependencies'
                                                                                                                                                                                                                                                                                                                                                                  | 'optionalDependencies'
                                                                                                                                                                                                                                                                                                                                                                  | 'peerDependencies'
                                                                                                                                                                                                                                                                                                                                                                  | 'peerDependenciesMeta'
                                                                                                                                                                                                                                                                                                                                                                  >;

                                                                                                                                                                                                                                                                                                                                                                    type PackageScripts

                                                                                                                                                                                                                                                                                                                                                                    type PackageScripts = {
                                                                                                                                                                                                                                                                                                                                                                    [name: string]: string;
                                                                                                                                                                                                                                                                                                                                                                    } & {
                                                                                                                                                                                                                                                                                                                                                                    prepublish?: string;
                                                                                                                                                                                                                                                                                                                                                                    prepare?: string;
                                                                                                                                                                                                                                                                                                                                                                    prepublishOnly?: string;
                                                                                                                                                                                                                                                                                                                                                                    prepack?: string;
                                                                                                                                                                                                                                                                                                                                                                    postpack?: string;
                                                                                                                                                                                                                                                                                                                                                                    publish?: string;
                                                                                                                                                                                                                                                                                                                                                                    postpublish?: string;
                                                                                                                                                                                                                                                                                                                                                                    preinstall?: string;
                                                                                                                                                                                                                                                                                                                                                                    install?: string;
                                                                                                                                                                                                                                                                                                                                                                    postinstall?: string;
                                                                                                                                                                                                                                                                                                                                                                    preuninstall?: string;
                                                                                                                                                                                                                                                                                                                                                                    uninstall?: string;
                                                                                                                                                                                                                                                                                                                                                                    postuninstall?: string;
                                                                                                                                                                                                                                                                                                                                                                    preversion?: string;
                                                                                                                                                                                                                                                                                                                                                                    version?: string;
                                                                                                                                                                                                                                                                                                                                                                    postversion?: string;
                                                                                                                                                                                                                                                                                                                                                                    pretest?: string;
                                                                                                                                                                                                                                                                                                                                                                    test?: string;
                                                                                                                                                                                                                                                                                                                                                                    posttest?: string;
                                                                                                                                                                                                                                                                                                                                                                    prestop?: string;
                                                                                                                                                                                                                                                                                                                                                                    stop?: string;
                                                                                                                                                                                                                                                                                                                                                                    poststop?: string;
                                                                                                                                                                                                                                                                                                                                                                    prestart?: string;
                                                                                                                                                                                                                                                                                                                                                                    start?: string;
                                                                                                                                                                                                                                                                                                                                                                    poststart?: string;
                                                                                                                                                                                                                                                                                                                                                                    prerestart?: string;
                                                                                                                                                                                                                                                                                                                                                                    restart?: string;
                                                                                                                                                                                                                                                                                                                                                                    postrestart?: string;
                                                                                                                                                                                                                                                                                                                                                                    preshrinkwrap?: string;
                                                                                                                                                                                                                                                                                                                                                                    shrinkwrap?: string;
                                                                                                                                                                                                                                                                                                                                                                    postshrinkwrap?: string;
                                                                                                                                                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                                                                                                                                                      type PackageVersionPolicy

                                                                                                                                                                                                                                                                                                                                                                      type PackageVersionPolicy = (pkgName: string) => boolean | string[];

                                                                                                                                                                                                                                                                                                                                                                        type ParentPackages

                                                                                                                                                                                                                                                                                                                                                                        type ParentPackages = Array<{
                                                                                                                                                                                                                                                                                                                                                                        name: string;
                                                                                                                                                                                                                                                                                                                                                                        version: string;
                                                                                                                                                                                                                                                                                                                                                                        }>;

                                                                                                                                                                                                                                                                                                                                                                          type PeerDependencyIssuesByProjects

                                                                                                                                                                                                                                                                                                                                                                          type PeerDependencyIssuesByProjects = Record<string, PeerDependencyIssues>;

                                                                                                                                                                                                                                                                                                                                                                            type PinnedVersion

                                                                                                                                                                                                                                                                                                                                                                            type PinnedVersion = RangeSpecStyle;

                                                                                                                                                                                                                                                                                                                                                                            type PkgId

                                                                                                                                                                                                                                                                                                                                                                            type PkgId = string & {
                                                                                                                                                                                                                                                                                                                                                                            __brand: 'PkgId';
                                                                                                                                                                                                                                                                                                                                                                            };

                                                                                                                                                                                                                                                                                                                                                                              type PkgIdWithPatchHash

                                                                                                                                                                                                                                                                                                                                                                              type PkgIdWithPatchHash = string & {
                                                                                                                                                                                                                                                                                                                                                                              __brand: 'PkgIdWithPatchHash';
                                                                                                                                                                                                                                                                                                                                                                              };

                                                                                                                                                                                                                                                                                                                                                                                type PkgResolutionId

                                                                                                                                                                                                                                                                                                                                                                                type PkgResolutionId = string & {
                                                                                                                                                                                                                                                                                                                                                                                __brand: 'PkgResolutionId';
                                                                                                                                                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                                                                                                                                                  type ProjectId

                                                                                                                                                                                                                                                                                                                                                                                  type ProjectId = string & {
                                                                                                                                                                                                                                                                                                                                                                                  __brand: 'ProjectId';
                                                                                                                                                                                                                                                                                                                                                                                  };

                                                                                                                                                                                                                                                                                                                                                                                    type ProjectRootDir

                                                                                                                                                                                                                                                                                                                                                                                    type ProjectRootDir = string & {
                                                                                                                                                                                                                                                                                                                                                                                    __brand: 'ProjectRootDir';
                                                                                                                                                                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                                                                                                                                                                      type ProjectRootDirRealPath

                                                                                                                                                                                                                                                                                                                                                                                      type ProjectRootDirRealPath = string & {
                                                                                                                                                                                                                                                                                                                                                                                      __brand: 'ProjectRootDirRealPath';
                                                                                                                                                                                                                                                                                                                                                                                      };

                                                                                                                                                                                                                                                                                                                                                                                        type ProjectsGraph

                                                                                                                                                                                                                                                                                                                                                                                        type ProjectsGraph = Record<
                                                                                                                                                                                                                                                                                                                                                                                        ProjectRootDir,
                                                                                                                                                                                                                                                                                                                                                                                        {
                                                                                                                                                                                                                                                                                                                                                                                        dependencies: ProjectRootDir[];
                                                                                                                                                                                                                                                                                                                                                                                        package: Project;
                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                        >;

                                                                                                                                                                                                                                                                                                                                                                                          type RangeSpecGranularity

                                                                                                                                                                                                                                                                                                                                                                                          type RangeSpecGranularity = 'none' | 'patch' | 'minor' | 'major';
                                                                                                                                                                                                                                                                                                                                                                                          • The width of the semver range a specifier is saved with: major writes ^, minor writes ~, and patch writes the bare version. none is inferred from a * specifier and serializes like major, except in the rolling workspace form, which keeps *.

                                                                                                                                                                                                                                                                                                                                                                                          type RangeSpecStyle

                                                                                                                                                                                                                                                                                                                                                                                          type RangeSpecStyle = RangeSpecGranularity | 'exact';
                                                                                                                                                                                                                                                                                                                                                                                          • How a resolved version is written back to the manifest. Beyond the granularity values, exact selects the same single-version range as patch but spells it with an explicit = operator, preserving a deliberate =x.y.z pin. Collapse the spelling away with @pnpm/pkg-manifest.utils's rangeSpecGranularity when only the range width matters.

                                                                                                                                                                                                                                                                                                                                                                                          type ReadPackageHook

                                                                                                                                                                                                                                                                                                                                                                                          type ReadPackageHook = <Pkg extends BaseManifest>(
                                                                                                                                                                                                                                                                                                                                                                                          pkg: Pkg,
                                                                                                                                                                                                                                                                                                                                                                                          dir?: string
                                                                                                                                                                                                                                                                                                                                                                                          ) => Pkg | Promise<Pkg>;

                                                                                                                                                                                                                                                                                                                                                                                            type RegistryServerType

                                                                                                                                                                                                                                                                                                                                                                                            type RegistryServerType = 'npm' | 'artifactory' | 'pnpr';
                                                                                                                                                                                                                                                                                                                                                                                            • The software serving a registry, declared through the registries setting. Undeclared by default, because "behaves like the npm registry" is a claim only the operator can make:

                                                                                                                                                                                                                                                                                                                                                                                              - undeclared — strict. Only the exact canonical URL is reconstructible. This is how every registry but registry.npmjs.org is read by default. - npm — behaves like registry.npmjs.org, which serves a scoped package from the percent-encoded path as well as the unencoded one. A faithful mirror or caching proxy of the public registry is this. - artifactory — repeats the scope in a scoped package's tarball filename. - pnpr — serves a version's tarball at <registry><name>@<version>.

                                                                                                                                                                                                                                                                                                                                                                                              Only layouts pnpm can rebuild a URL for belong here. A registry that serves tarballs from a content-derived path (GitHub Packages /download/<scope>/<name>/<version>/<sha256>) has no value: the digest is a fact about the bytes rather than about the package's identity, so its URLs are kept in the lockfile instead.

                                                                                                                                                                                                                                                                                                                                                                                            type RuntimeName

                                                                                                                                                                                                                                                                                                                                                                                            type RuntimeName = (typeof RUNTIME_NAMES)[number];

                                                                                                                                                                                                                                                                                                                                                                                              type TokenHelper

                                                                                                                                                                                                                                                                                                                                                                                              type TokenHelper = [string, ...string[]];
                                                                                                                                                                                                                                                                                                                                                                                              • Parsed value of tokenHelper of each registry in the rc file.

                                                                                                                                                                                                                                                                                                                                                                                              type TrustPolicy

                                                                                                                                                                                                                                                                                                                                                                                              type TrustPolicy = 'no-downgrade' | 'off';

                                                                                                                                                                                                                                                                                                                                                                                                type VersioningBumpType

                                                                                                                                                                                                                                                                                                                                                                                                type VersioningBumpType = 'patch' | 'minor' | 'major';

                                                                                                                                                                                                                                                                                                                                                                                                  type VersioningChangelogStorage

                                                                                                                                                                                                                                                                                                                                                                                                  type VersioningChangelogStorage = 'registry' | 'repository';

                                                                                                                                                                                                                                                                                                                                                                                                    type VirtualStoreType

                                                                                                                                                                                                                                                                                                                                                                                                    type VirtualStoreType = 'global' | 'project';

                                                                                                                                                                                                                                                                                                                                                                                                      type VulnerabilitySeverity

                                                                                                                                                                                                                                                                                                                                                                                                      type VulnerabilitySeverity = 'info' | 'low' | 'moderate' | 'high' | 'critical';

                                                                                                                                                                                                                                                                                                                                                                                                        Package Files (8)

                                                                                                                                                                                                                                                                                                                                                                                                        Dependencies (0)

                                                                                                                                                                                                                                                                                                                                                                                                        No dependencies.

                                                                                                                                                                                                                                                                                                                                                                                                        Dev Dependencies (1)

                                                                                                                                                                                                                                                                                                                                                                                                        Peer Dependencies (0)

                                                                                                                                                                                                                                                                                                                                                                                                        No peer dependencies.

                                                                                                                                                                                                                                                                                                                                                                                                        Badge

                                                                                                                                                                                                                                                                                                                                                                                                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                                                                                                                                                                                                                                                                                                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@pnpm/types.

                                                                                                                                                                                                                                                                                                                                                                                                        • Markdown
                                                                                                                                                                                                                                                                                                                                                                                                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@pnpm/types)
                                                                                                                                                                                                                                                                                                                                                                                                        • HTML
                                                                                                                                                                                                                                                                                                                                                                                                          <a href="https://www.jsdocs.io/package/@pnpm/types"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>