cooldown

pnpm

On this page

cooldown gates pnpm projects and workspaces through --tool pnpm.

What it reads#

A pnpm project is a package.json with its pnpm-lock.yaml.

Registry#

Publish times come from the npm registry.

pnpm’s native cooldown is minimumReleaseAge. cooldown sync writes the resolved policy into the project’s pnpm-workspace.yaml as minimumReleaseAge and minimumReleaseAgeExclude.

How it is driven#

cooldown runs pnpm, or the program COOLDOWN_PNPM names:

  • check: proves the lock current with a frozen, lock-only install (pnpm install --lockfile-only --frozen-lockfile).
  • --lock: refreshes the lock with pnpm install --lockfile-only.
  • upgrade and fix: land each target exactly with one pnpm update <name>@<target> … --lockfile-only --no-save across the workspace, as Whole-workspace landings describes.
  • --build: runs pnpm install.

The frozen check’s refusals that count as a stale lock, which --allow-stale-lock waives:

  • ERR_PNPM_OUTDATED_LOCKFILE
  • ERR_PNPM_LOCKFILE_CONFIG_MISMATCH
  • ERR_PNPM_NO_LOCKFILE
  • ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE

Any other failure is tool_failed.

Edge cases#

[tool.pnpm] single-copy names the packages a pnpm resolve must never leave at two resolved copies.

Every npm-family tool owns package.json, so two of them at one root take turns under upgrade, fix and --lock; see Several ecosystems at once.

Esc

Type # for headings only ↑↓ move ↵ open Ctrl ↵ new tab Ctrl U/D scroll preview

Keyboard shortcuts

/ ⌘ K Ctrl K
Search
← →
Previous or next page
?
Show these shortcuts