Skip to content

docs: move product documentation beside its implementation - #16385

Merged
zkochan merged 7 commits into
mainfrom
move-docs
Sep 29, 2026
Merged

zkochan merged 7 commits into
mainfrom
move-docs

Conversation

@zkochan

@zkochan zkochan commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Keep pnpm v11, pnpm v12, and pnpr documentation beside their implementations so code and docs can land in the same PR:

  • pnpm11/docs/: v11 Markdown, sidebar, and documentation assets.
  • pnpm/docs/: v12 Markdown, sidebar, and documentation assets.
  • pnpr/docs/: registry Markdown and sidebar.

There are no extra version directories in the source tree. The website maps these product directories to its published versions. V10, archived versions, and the blog remain in pnpm/pnpm.io. A v10 migration to release/10 is outside this PR.

Depends on pnpm/pnpm.io#974; merge the website PR first. The documentation check pins that website revision so this PR can be validated before the prerequisite merges.

After a successful stable v11 or v12 release, or a pnpr release (including alpha), a separate workflow verifies the signed tag and npm publication before syncing that product's documentation. It supports independent retries and documentation-only corrections based on the release tag. A manual run from main with no inputs publishes all three current docs trees without a release. Builds have no publication credential; a separate runner validates a documentation-only artifact and pushes from a clean checkout. See DOCUMENTATION.md for previews, publication, and rollout. Existing Rust CI and benchmark path filters now recognize the new documentation directories. A pnpr-docs-only change also avoids the full TypeScript test selection.

Rollout requires the companion website PR and DOCS_SYNC_TOKEN in the docs-sync environment.

Squash Commit Body

Place v11 documentation under pnpm11/docs and v12 documentation under pnpm/docs,
including sidebars and referenced assets. Place registry documentation under
pnpr/docs. Keep all other website content in
pnpm/pnpm.io. Version selection belongs to the website's publication mapping.

Build PR documentation against a pinned website revision. After successful
stable v11 and v12 releases and pnpr releases, verify the signed tag and npm publication before
syncing the corresponding product's snapshot. Permit retries and docs-only
corrections based on the release tag without publishing pending code changes.

Preserve binary assets with Git attributes and normalize incidental Markdown
whitespace. Exclude two generated SVG assets with opaque IDs and partial
terminal-animation words from prose spell checking.

Companion website change: https://github.com/pnpm/pnpm.io/pull/974

Checklist

  • Added or updated tests.
  • Updated the documentation if needed.

Validation: 7 source-selection tests, 3 artifact-boundary tests, 3 CI-scope tests and 18 companion website tests passed. The website build and all 6,006 compatibility URL checks passed. Verified edit links for v11, v12, v10, pnpr, and all 54 English blog posts. Actionlint, the workflow security check, Rust formatting, spelling, and source whitespace checks passed. A CI failure exposed a timestamp-sensitive dependency-status test fixture: identical whole-second lockfile timestamps triggered a freshness check. The fixture now represents the installed lockfile as newer; all 100 tests in that file pass, including explicit whole-second and sub-second cases. No published package behavior changes, so no changeset is required.


Written by an agent (Codex, GPT-6).

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 337 files, which is 37 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 6417e785-cd18-43fd-a79b-dd751a5a343f

📥 Commits

Reviewing files that changed from the base of the PR and between 9f41ad6 and b3774c0.

⛔ Files ignored due to path filters (81)
  • pnpm/docs/static/img/demos/pnpm-install.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/installation-stages-of-other-pms.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/installation-stages-of-pnpm.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/isolated-node-modules.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/logos/pnpm-light-no-text.png is excluded by !**/*.png
  • pnpm/docs/static/img/logos/pnpm-light-no-text.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/logos/pnpm-light.png is excluded by !**/*.png
  • pnpm/docs/static/img/logos/pnpm-light.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/logos/pnpm-standard-no-text.png is excluded by !**/*.png
  • pnpm/docs/static/img/logos/pnpm-standard-no-text.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/logos/pnpm-standard.png is excluded by !**/*.png
  • pnpm/docs/static/img/logos/pnpm-standard.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/pnpm-store.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/adber.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/agora-flat.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/alova.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/angular.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/bytedance.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/bytesafe.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/codecarrot.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/compass.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/cyclejs.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/element-plus.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/emberjs.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/enuma.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/files.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/flashproxy.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/fonkel.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/glitch.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/jike.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/jublia.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/justanswer.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/kretes.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/lodine.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/macpaw.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/maze.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/microsoft.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/mui.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/netease-avg.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/netlicensing.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/nhost.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/nx.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/oax.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/osmos.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/pabio.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/panascais.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/peakactivity.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/prezi.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/prisma.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/qwik.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/realgolf.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/rush.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/sheetjs.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/shipber.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/shopee.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/sveltekit.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/swissdev-javascript-jobs.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/syntaxphoenix.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/takeshape.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/telescoope.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/telia.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/tinyhttp.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/tokopedia.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/tradie-training.png is excluded by !**/*.png
  • pnpm/docs/static/img/users/verdaccio.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/vue.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/wix.svg is excluded by !**/*.svg
  • pnpm/docs/static/img/users/yonghui.png is excluded by !**/*.png
  • pnpm11/docs/static/img/demos/pnpm-install.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/installation-stages-of-other-pms.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/installation-stages-of-pnpm.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/isolated-node-modules.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/logos/pnpm-light-no-text.png is excluded by !**/*.png
  • pnpm11/docs/static/img/logos/pnpm-light-no-text.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/logos/pnpm-light.png is excluded by !**/*.png
  • pnpm11/docs/static/img/logos/pnpm-light.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/logos/pnpm-standard-no-text.png is excluded by !**/*.png
  • pnpm11/docs/static/img/logos/pnpm-standard-no-text.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/logos/pnpm-standard.png is excluded by !**/*.png
  • pnpm11/docs/static/img/logos/pnpm-standard.svg is excluded by !**/*.svg
  • pnpm11/docs/static/img/pnpm-store.svg is excluded by !**/*.svg
📒 Files selected for processing (337)
  • .github/scripts/copy-docs-artifact.mjs
  • .github/scripts/copy-docs-artifact.test.mjs
  • .github/scripts/prepare-docs-sync.mjs
  • .github/scripts/prepare-docs-sync.test.mjs
  • .github/scripts/ts-test-scope.mjs
  • .github/scripts/ts-test-scope.test.mjs
  • .github/workflows/docs.yml
  • .github/workflows/pacquet-ci.yml
  • .github/workflows/pacquet-integrated-benchmark.yml
  • .github/workflows/sync-docs.yml
  • .typos.toml
  • AGENTS.md
  • DOCUMENTATION.md
  • RELEASING.md
  • pnpm/docs/.gitattributes
  • pnpm/docs/aliases.md
  • pnpm/docs/cargo.md
  • pnpm/docs/catalogs.md
  • pnpm/docs/cli/access.md
  • pnpm/docs/cli/add.md
  • pnpm/docs/cli/approve-builds.md
  • pnpm/docs/cli/audit.md
  • pnpm/docs/cli/bin.md
  • pnpm/docs/cli/bugs.md
  • pnpm/docs/cli/cache-delete.md
  • pnpm/docs/cli/cache-list-registries.md
  • pnpm/docs/cli/cache-list.md
  • pnpm/docs/cli/cache-path.md
  • pnpm/docs/cli/cache-prune.md
  • pnpm/docs/cli/cache-view.md
  • pnpm/docs/cli/cache.md
  • pnpm/docs/cli/cat-file.md
  • pnpm/docs/cli/cat-index.md
  • pnpm/docs/cli/change.md
  • pnpm/docs/cli/ci.md
  • pnpm/docs/cli/clean.md
  • pnpm/docs/cli/config.md
  • pnpm/docs/cli/create.md
  • pnpm/docs/cli/dedupe.md
  • pnpm/docs/cli/deploy.md
  • pnpm/docs/cli/deprecate.md
  • pnpm/docs/cli/dist-tag.md
  • pnpm/docs/cli/docs.md
  • pnpm/docs/cli/doctor.md
  • pnpm/docs/cli/env.md
  • pnpm/docs/cli/exec.md
  • pnpm/docs/cli/fetch.md
  • pnpm/docs/cli/find-hash.md
  • pnpm/docs/cli/help.md
  • pnpm/docs/cli/ignored-builds.md
  • pnpm/docs/cli/import.md
  • pnpm/docs/cli/init.md
  • pnpm/docs/cli/install-test.md
  • pnpm/docs/cli/install.md
  • pnpm/docs/cli/lane.md
  • pnpm/docs/cli/licenses.md
  • pnpm/docs/cli/link.md
  • pnpm/docs/cli/list.md
  • pnpm/docs/cli/login.md
  • pnpm/docs/cli/logout.md
  • pnpm/docs/cli/outdated.md
  • pnpm/docs/cli/owner.md
  • pnpm/docs/cli/pack-app.md
  • pnpm/docs/cli/pack.md
  • pnpm/docs/cli/patch-commit.md
  • pnpm/docs/cli/patch-remove.md
  • pnpm/docs/cli/patch.md
  • pnpm/docs/cli/peers.md
  • pnpm/docs/cli/ping.md
  • pnpm/docs/cli/pipeline.md
  • pnpm/docs/cli/pkg.md
  • pnpm/docs/cli/pm.md
  • pnpm/docs/cli/pnx.md
  • pnpm/docs/cli/prefix.md
  • pnpm/docs/cli/prune.md
  • pnpm/docs/cli/publish.md
  • pnpm/docs/cli/rebuild.md
  • pnpm/docs/cli/recursive.md
  • pnpm/docs/cli/remove.md
  • pnpm/docs/cli/repo.md
  • pnpm/docs/cli/root.md
  • pnpm/docs/cli/run.md
  • pnpm/docs/cli/runtime.md
  • pnpm/docs/cli/sbom.md
  • pnpm/docs/cli/search.md
  • pnpm/docs/cli/self-update.md
  • pnpm/docs/cli/set-script.md
  • pnpm/docs/cli/setup.md
  • pnpm/docs/cli/shim.md
  • pnpm/docs/cli/stage.md
  • pnpm/docs/cli/star.md
  • pnpm/docs/cli/start.md
  • pnpm/docs/cli/store.md
  • pnpm/docs/cli/tasks.md
  • pnpm/docs/cli/team.md
  • pnpm/docs/cli/test.md
  • pnpm/docs/cli/unlink.md
  • pnpm/docs/cli/unpublish.md
  • pnpm/docs/cli/update.md
  • pnpm/docs/cli/version.md
  • pnpm/docs/cli/view.md
  • pnpm/docs/cli/whoami.md
  • pnpm/docs/cli/why.md
  • pnpm/docs/cli/with.md
  • pnpm/docs/completion.md
  • pnpm/docs/config-dependencies.md
  • pnpm/docs/configuring.md
  • pnpm/docs/continuous-integration.md
  • pnpm/docs/crypto-donations.md
  • pnpm/docs/docker.md
  • pnpm/docs/errors.md
  • pnpm/docs/faq.md
  • pnpm/docs/feature-comparison.md
  • pnpm/docs/filtering.md
  • pnpm/docs/finders.md
  • pnpm/docs/git-worktrees.md
  • pnpm/docs/git.md
  • pnpm/docs/git_branch_lockfiles.md
  • pnpm/docs/global-packages.md
  • pnpm/docs/global-virtual-store.md
  • pnpm/docs/how-peers-are-resolved.md
  • pnpm/docs/installation.md
  • pnpm/docs/limitations.md
  • pnpm/docs/lockfile.md
  • pnpm/docs/logos.md
  • pnpm/docs/migration.md
  • pnpm/docs/motivation.md
  • pnpm/docs/npmrc.md
  • pnpm/docs/only-allow-pnpm.md
  • pnpm/docs/package-managers.md
  • pnpm/docs/package-sources.md
  • pnpm/docs/package_json.md
  • pnpm/docs/pnpm-cli.md
  • pnpm/docs/pnpm-vs-npm.md
  • pnpm/docs/pnpmfile.md
  • pnpm/docs/podman.md
  • pnpm/docs/production.md
  • pnpm/docs/python.md
  • pnpm/docs/registries.md
  • pnpm/docs/registry-revisions.md
  • pnpm/docs/scripts.md
  • pnpm/docs/settings.md
  • pnpm/docs/settings/_catalogMode.mdx
  • pnpm/docs/settings/_catalogPrune.mdx
  • pnpm/docs/settings/_cpuFlag.mdx
  • pnpm/docs/settings/_enablePrePostScripts.mdx
  • pnpm/docs/settings/_findBy.mdx
  • pnpm/docs/settings/_libcFlag.mdx
  • pnpm/docs/settings/_osFlag.mdx
  • pnpm/docs/settings/_scriptShell.mdx
  • pnpm/docs/settings/_shellEmulator.mdx
  • pnpm/docs/settings/build.md
  • pnpm/docs/settings/cli.md
  • pnpm/docs/settings/dependency-resolution.md
  • pnpm/docs/settings/network.md
  • pnpm/docs/settings/node-modules.md
  • pnpm/docs/settings/other.md
  • pnpm/docs/settings/peer-dependencies.md
  • pnpm/docs/settings/store.md
  • pnpm/docs/settings/versioning.md
  • pnpm/docs/sidebars.json
  • pnpm/docs/supply-chain-security.md
  • pnpm/docs/symlinked-node-modules-structure.md
  • pnpm/docs/typescript.md
  • pnpm/docs/uninstall.md
  • pnpm/docs/users.md
  • pnpm/docs/using-changesets.md
  • pnpm/docs/versioning.md
  • pnpm/docs/workspace-task-orchestration.md
  • pnpm/docs/workspaces.md
  • pnpm11/deps/status/test/checkDepsStatus.test.ts
  • pnpm11/docs/.gitattributes
  • pnpm11/docs/aliases.md
  • pnpm11/docs/catalogs.md
  • pnpm11/docs/cli/access.md
  • pnpm11/docs/cli/add.md
  • pnpm11/docs/cli/approve-builds.md
  • pnpm11/docs/cli/audit.md
  • pnpm11/docs/cli/bin.md
  • pnpm11/docs/cli/bugs.md
  • pnpm11/docs/cli/cache-delete.md
  • pnpm11/docs/cli/cache-list-registries.md
  • pnpm11/docs/cli/cache-list.md
  • pnpm11/docs/cli/cache-path.md
  • pnpm11/docs/cli/cache-view.md
  • pnpm11/docs/cli/cache.md
  • pnpm11/docs/cli/cat-file.md
  • pnpm11/docs/cli/cat-index.md
  • pnpm11/docs/cli/change.md
  • pnpm11/docs/cli/ci.md
  • pnpm11/docs/cli/clean.md
  • pnpm11/docs/cli/config.md
  • pnpm11/docs/cli/create.md
  • pnpm11/docs/cli/dedupe.md
  • pnpm11/docs/cli/deploy.md
  • pnpm11/docs/cli/deprecate.md
  • pnpm11/docs/cli/dist-tag.md
  • pnpm11/docs/cli/docs.md
  • pnpm11/docs/cli/doctor.md
  • pnpm11/docs/cli/env.md
  • pnpm11/docs/cli/exec.md
  • pnpm11/docs/cli/fetch.md
  • pnpm11/docs/cli/find-hash.md
  • pnpm11/docs/cli/help.md
  • pnpm11/docs/cli/ignored-builds.md
  • pnpm11/docs/cli/import.md
  • pnpm11/docs/cli/init.md
  • pnpm11/docs/cli/install-test.md
  • pnpm11/docs/cli/install.md
  • pnpm11/docs/cli/lane.md
  • pnpm11/docs/cli/licenses.md
  • pnpm11/docs/cli/link.md
  • pnpm11/docs/cli/list.md
  • pnpm11/docs/cli/login.md
  • pnpm11/docs/cli/logout.md
  • pnpm11/docs/cli/outdated.md
  • pnpm11/docs/cli/owner.md
  • pnpm11/docs/cli/pack-app.md
  • pnpm11/docs/cli/pack.md
  • pnpm11/docs/cli/patch-commit.md
  • pnpm11/docs/cli/patch-remove.md
  • pnpm11/docs/cli/patch.md
  • pnpm11/docs/cli/peers.md
  • pnpm11/docs/cli/ping.md
  • pnpm11/docs/cli/pkg.md
  • pnpm11/docs/cli/pm.md
  • pnpm11/docs/cli/pnx.md
  • pnpm11/docs/cli/prefix.md
  • pnpm11/docs/cli/prune.md
  • pnpm11/docs/cli/publish.md
  • pnpm11/docs/cli/rebuild.md
  • pnpm11/docs/cli/recursive.md
  • pnpm11/docs/cli/remove.md
  • pnpm11/docs/cli/repo.md
  • pnpm11/docs/cli/root.md
  • pnpm11/docs/cli/run.md
  • pnpm11/docs/cli/runtime.md
  • pnpm11/docs/cli/sbom.md
  • pnpm11/docs/cli/search.md
  • pnpm11/docs/cli/self-update.md
  • pnpm11/docs/cli/set-script.md
  • pnpm11/docs/cli/setup.md
  • pnpm11/docs/cli/stage.md
  • pnpm11/docs/cli/star.md
  • pnpm11/docs/cli/start.md
  • pnpm11/docs/cli/store.md
  • pnpm11/docs/cli/team.md
  • pnpm11/docs/cli/test.md
  • pnpm11/docs/cli/unlink.md
  • pnpm11/docs/cli/unpublish.md
  • pnpm11/docs/cli/update.md
  • pnpm11/docs/cli/version.md
  • pnpm11/docs/cli/view.md
  • pnpm11/docs/cli/whoami.md
  • pnpm11/docs/cli/why.md
  • pnpm11/docs/cli/with.md
  • pnpm11/docs/completion.md
  • pnpm11/docs/config-dependencies.md
  • pnpm11/docs/configuring.md
  • pnpm11/docs/continuous-integration.md
  • pnpm11/docs/docker.md
  • pnpm11/docs/errors.md
  • pnpm11/docs/faq.md
  • pnpm11/docs/feature-comparison.md
  • pnpm11/docs/filtering.md
  • pnpm11/docs/finders.md
  • pnpm11/docs/git-worktrees.md
  • pnpm11/docs/git.md
  • pnpm11/docs/git_branch_lockfiles.md
  • pnpm11/docs/global-packages.md
  • pnpm11/docs/global-virtual-store.md
  • pnpm11/docs/how-peers-are-resolved.md
  • pnpm11/docs/installation.md
  • pnpm11/docs/limitations.md
  • pnpm11/docs/lockfile.md
  • pnpm11/docs/logos.md
  • pnpm11/docs/migration.md
  • pnpm11/docs/motivation.md
  • pnpm11/docs/npmrc.md
  • pnpm11/docs/only-allow-pnpm.md
  • pnpm11/docs/package-sources.md
  • pnpm11/docs/package_json.md
  • pnpm11/docs/pnpm-cli.md
  • pnpm11/docs/pnpm-vs-npm.md
  • pnpm11/docs/pnpmfile.md
  • pnpm11/docs/podman.md
  • pnpm11/docs/production.md
  • pnpm11/docs/registries.md
  • pnpm11/docs/registry-revisions.md
  • pnpm11/docs/scripts.md
  • pnpm11/docs/settings.md
  • pnpm11/docs/settings/_catalogMode.mdx
  • pnpm11/docs/settings/_catalogPrune.mdx
  • pnpm11/docs/settings/_cpuFlag.mdx
  • pnpm11/docs/settings/_enablePrePostScripts.mdx
  • pnpm11/docs/settings/_findBy.mdx
  • pnpm11/docs/settings/_libcFlag.mdx
  • pnpm11/docs/settings/_osFlag.mdx
  • pnpm11/docs/settings/_scriptShell.mdx
  • pnpm11/docs/settings/_shellEmulator.mdx
  • pnpm11/docs/settings/build.md
  • pnpm11/docs/settings/cli.md
  • pnpm11/docs/settings/dependency-resolution.md
  • pnpm11/docs/settings/network.md
  • pnpm11/docs/settings/node-modules.md
  • pnpm11/docs/settings/other.md
  • pnpm11/docs/settings/peer-dependencies.md
  • pnpm11/docs/settings/store.md
  • pnpm11/docs/settings/versioning.md
  • pnpm11/docs/sidebars.json
  • pnpm11/docs/supply-chain-security.md
  • pnpm11/docs/symlinked-node-modules-structure.md
  • pnpm11/docs/typescript.md
  • pnpm11/docs/uninstall.md
  • pnpm11/docs/using-changesets.md
  • pnpm11/docs/versioning.md
  • pnpm11/docs/workspace-task-orchestration.md
  • pnpm11/docs/workspaces.md
  • pnpr/docs/.gitattributes
  • pnpr/docs/auth-backends.md
  • pnpr/docs/cli.md
  • pnpr/docs/compiler-cache.md
  • pnpr/docs/configuration.md
  • pnpr/docs/container-images.md
  • pnpr/docs/discovery.md
  • pnpr/docs/ecosystems.md
  • pnpr/docs/endpoints.md
  • pnpr/docs/install-acceleration.md
  • pnpr/docs/installation.md
  • pnpr/docs/introduction.md
  • pnpr/docs/license.md
  • pnpr/docs/oidc.md
  • pnpr/docs/pipeline-runs.md
  • pnpr/docs/quick-start.md
  • pnpr/docs/shared-side-effects-cache.md
  • pnpr/docs/sidebars.json
  • pnpr/docs/storage.md

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zkochan

zkochan commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

Kept as a draft at the author's request. Before rollout, merge the prerequisite website change at pnpm/pnpm.io#974 and configure DOCS_SYNC_TOKEN in this repository's docs-sync environment. The website revision used for PR validation is pinned, so this draft can be checked before the prerequisite merges.


Written by an agent (Codex, GPT-6).

@zkochan zkochan changed the title docs: move website documentation into the pnpm repository docs: move product documentation beside its implementation Sep 29, 2026
@zkochan

zkochan commented Sep 29, 2026 •

Copy link
Copy Markdown
Member Author

The source layout is now pnpm11/docs for v11, pnpm/docs for v12, and pnpr/docs for the registry. V10 and archived docs stay in pnpm/pnpm.io; there are no extra version directories in the source tree. The companion website PR uses the same mapping and keeps the blog in pnpm/pnpm.io.

Both PRs remain drafts. The website PR is still the prerequisite, followed by configuration of the source repository's docs-sync credential.


Written by an agent (Codex, GPT-6).

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2449.38 ms 2410.27 ms -1.6% 122.47 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1479.69 ms 1458.30 ms -1.4% 73.98 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 248.33 ms 264.54 ms 6.5% 12.42 ms Inconclusive (overlapping samples)
isolated-fresh-restore-hot-cache-hot-store pnpr 343.62 ms 255.55 ms -25.6% 17.18 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet 8.24 ms 8.58 ms 4.1% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 8.69 ms 9.13 ms 5.1% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 11.18 ms 10.92 ms -2.4% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 10.31 ms 11.05 ms 7.2% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2558.80 ms 2605.09 ms 1.8% 127.94 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1523.16 ms 1542.86 ms 1.3% 76.16 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 580.49 ms 583.59 ms 0.5% 29.02 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 353.35 ms 363.21 ms 2.8% 17.67 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1686.71 ms 1768.91 ms 4.9% 84.34 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 383.95 ms 304.77 ms -20.6% 19.20 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 237.57 ms 223.86 ms -5.8% 11.88 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 91.54 ms 92.21 ms 0.7% 4.58 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 1137.81 ms 1133.52 ms -0.4% 56.89 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 219.34 ms 218.70 ms -0.3% 10.97 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4489.69 ms 4399.34 ms -2.0% 224.48 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3683.90 ms 3739.28 ms 1.5% 184.19 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 156.88 ms 238.36 ms 51.9% 7.84 ms Inconclusive (not reproduced)
gvs-fresh-restore-hot-cache-hot-store pnpr 160.96 ms 180.36 ms 12.1% 8.05 ms Inconclusive (overlapping samples)

Integrated-Benchmark Report (Linux)

Commit: b3774c0445dd

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked-workspace scenario compares current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.484 ± 0.153 2.349 2.783 1.69 ± 0.15
pacquet@main 2.490 ± 0.121 2.351 2.690 1.70 ± 0.13
pnpr@HEAD 1.466 ± 0.088 1.362 1.607 1.00
pnpr@main 1.544 ± 0.142 1.384 1.801 1.05 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4838267247,
      "stddev": 0.15297853737919906,
      "median": 2.4102744770999998,
      "user": 1.8567394000000004,
      "system": 1.8199304799999996,
      "min": 2.3487962821,
      "max": 2.7833219960999998
    },
    {
      "command": "pacquet@main",
      "mean": 2.4900157910999994,
      "stddev": 0.12147438889597005,
      "median": 2.4493782896,
      "user": 1.7755312,
      "system": 1.6944766799999997,
      "min": 2.3514328091,
      "max": 2.6897069051
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4656888603,
      "stddev": 0.08848672972150563,
      "median": 1.4582999291,
      "user": 1.585238,
      "system": 1.55563118,
      "min": 1.3618322251000001,
      "max": 1.6066757611000002
    },
    {
      "command": "pnpr@main",
      "mean": 1.5437991489000003,
      "stddev": 0.14188390965598463,
      "median": 1.4796928896,
      "user": 1.6853302000000003,
      "system": 1.67090178,
      "min": 1.3835306721,
      "max": 1.8005007031000002
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 288.5 ± 58.5 237.6 428.7 1.17 ± 0.24
pacquet@main 247.3 ± 7.9 237.3 261.7 1.00
pnpr@HEAD 262.3 ± 25.7 232.5 312.1 1.06 ± 0.11
pnpr@main 347.7 ± 33.7 298.1 399.5 1.41 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2884806320400001,
      "stddev": 0.05852529667935121,
      "median": 0.26453962373999995,
      "user": 0.34230883999999995,
      "system": 0.6587410599999999,
      "min": 0.23759526824000002,
      "max": 0.42872869924
    },
    {
      "command": "pacquet@main",
      "mean": 0.24726532844,
      "stddev": 0.007932070481994274,
      "median": 0.24833362324000002,
      "user": 0.27973873999999993,
      "system": 0.59295526,
      "min": 0.23725275524000003,
      "max": 0.26172775224
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26227630544,
      "stddev": 0.02566710035491427,
      "median": 0.25554634374,
      "user": 0.27580214000000003,
      "system": 0.5800154599999999,
      "min": 0.23246927824000002,
      "max": 0.31208005924
    },
    {
      "command": "pnpr@main",
      "mean": 0.34768693564,
      "stddev": 0.03373069668242635,
      "median": 0.34361994324,
      "user": 0.35507933999999997,
      "system": 0.7106494600000001,
      "min": 0.29811446124,
      "max": 0.39946167624
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 8.7 ± 0.7 7.5 11.9 1.04 ± 0.14
pacquet@main 8.4 ± 0.8 7.2 13.0 1.00
pnpr@HEAD 9.3 ± 1.6 7.0 16.9 1.11 ± 0.22
pnpr@main 8.9 ± 1.3 7.3 25.0 1.06 ± 0.19
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.0087335366214035,
      "stddev": 0.0007454557090169426,
      "median": 0.00857681346,
      "user": 0.0054567196491228055,
      "system": 0.004040413333333332,
      "min": 0.007458470460000001,
      "max": 0.01187248446
    },
    {
      "command": "pacquet@main",
      "mean": 0.008381270413987733,
      "stddev": 0.0008397449513286029,
      "median": 0.00823834646,
      "user": 0.00520248208588957,
      "system": 0.0038895806134969305,
      "min": 0.007184739460000001,
      "max": 0.01303175446
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.009293958089629632,
      "stddev": 0.0015872441413414605,
      "median": 0.00913057246,
      "user": 0.0056511515824915785,
      "system": 0.004461349764309761,
      "min": 0.007009539460000001,
      "max": 0.01688311346
    },
    {
      "command": "pnpr@main",
      "mean": 0.008909213237070059,
      "stddev": 0.0012936786920867802,
      "median": 0.00868649596,
      "user": 0.0052602682802547745,
      "system": 0.004374136433121019,
      "min": 0.007324930460000001,
      "max": 0.024999867460000002
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 12.0 ± 2.8 9.5 24.5 1.15 ± 0.30
pacquet@main 11.3 ± 1.3 8.7 15.7 1.08 ± 0.19
pnpr@HEAD 11.4 ± 2.0 8.9 34.0 1.09 ± 0.24
pnpr@main 10.4 ± 1.3 7.9 15.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.011951005473783784,
      "stddev": 0.0027778479931729132,
      "median": 0.01091704344,
      "user": 0.0061998386486486505,
      "system": 0.006817937162162164,
      "min": 0.00951150494,
      "max": 0.024476716940000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.011259331162222221,
      "stddev": 0.0013138775906399852,
      "median": 0.01118144394,
      "user": 0.006933260512820514,
      "system": 0.005340924786324785,
      "min": 0.00865436694,
      "max": 0.015655553940000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.011401488994298643,
      "stddev": 0.0020022103403033393,
      "median": 0.01105186094,
      "user": 0.006693514660633486,
      "system": 0.005575796832579188,
      "min": 0.00889326694,
      "max": 0.03403961794
    },
    {
      "command": "pnpr@main",
      "mean": 0.010418567687663551,
      "stddev": 0.0013098126391697692,
      "median": 0.010313599940000001,
      "user": 0.006326393271028038,
      "system": 0.0050335453271028036,
      "min": 0.007945645940000001,
      "max": 0.01534784194
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.638 ± 0.102 2.550 2.893 1.71 ± 0.11
pacquet@main 2.557 ± 0.030 2.506 2.599 1.65 ± 0.08
pnpr@HEAD 1.549 ± 0.127 1.410 1.769 1.00 ± 0.10
pnpr@main 1.547 ± 0.076 1.447 1.659 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6379168080000004,
      "stddev": 0.10213585201630208,
      "median": 2.6050890467,
      "user": 2.27355444,
      "system": 1.78857964,
      "min": 2.5498444477,
      "max": 2.8925703807
    },
    {
      "command": "pacquet@main",
      "mean": 2.5565857384,
      "stddev": 0.02967947633430283,
      "median": 2.5587997722,
      "user": 2.05139374,
      "system": 1.6389427399999998,
      "min": 2.5060679817000002,
      "max": 2.5993447587
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5493413814,
      "stddev": 0.12709109658424725,
      "median": 1.5428630232,
      "user": 1.2883358399999998,
      "system": 1.36152674,
      "min": 1.4095630417,
      "max": 1.7693955797
    },
    {
      "command": "pnpr@main",
      "mean": 1.5470778786000001,
      "stddev": 0.07592756825641557,
      "median": 1.5231560981999999,
      "user": 1.4481123399999998,
      "system": 1.5206298399999998,
      "min": 1.4473201587,
      "max": 1.6585216197000001
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 587.0 ± 15.5 563.8 612.5 1.65 ± 0.09
pacquet@main 577.2 ± 25.6 538.4 612.9 1.63 ± 0.10
pnpr@HEAD 366.1 ± 11.9 352.2 392.2 1.03 ± 0.06
pnpr@main 355.0 ± 16.3 331.1 385.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.5869674631799999,
      "stddev": 0.0155227860874068,
      "median": 0.5835927171799999,
      "user": 0.8145650199999999,
      "system": 0.9416401599999998,
      "min": 0.56380380818,
      "max": 0.61249977918
    },
    {
      "command": "pacquet@main",
      "mean": 0.5771535960800002,
      "stddev": 0.025636631297648867,
      "median": 0.58049021518,
      "user": 0.79072722,
      "system": 0.9119147599999998,
      "min": 0.5384122301800001,
      "max": 0.61285360318
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.36612385707999995,
      "stddev": 0.011907043554440907,
      "median": 0.36321434068,
      "user": 0.34618921999999996,
      "system": 0.72222226,
      "min": 0.35224107918,
      "max": 0.39218809518000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.3549792881799999,
      "stddev": 0.016299209238150595,
      "median": 0.35334505718,
      "user": 0.31930232000000003,
      "system": 0.70172576,
      "min": 0.33112530718,
      "max": 0.38541014118
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.786 ± 0.101 1.666 2.001 5.87 ± 0.39
pacquet@main 1.693 ± 0.022 1.668 1.745 5.57 ± 0.21
pnpr@HEAD 0.304 ± 0.011 0.284 0.318 1.00
pnpr@main 0.388 ± 0.021 0.357 0.422 1.28 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.7857516801,
      "stddev": 0.1013007899283204,
      "median": 1.7689106477,
      "user": 1.2137843199999998,
      "system": 1.0306349,
      "min": 1.6657007312,
      "max": 2.0013719562000003
    },
    {
      "command": "pacquet@main",
      "mean": 1.6929767892999998,
      "stddev": 0.021516302421926495,
      "median": 1.6867051231999999,
      "user": 1.02583652,
      "system": 0.9034467000000002,
      "min": 1.6683385082,
      "max": 1.7453564242
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3040855309000001,
      "stddev": 0.01062114008439314,
      "median": 0.3047676557000001,
      "user": 0.28822132,
      "system": 0.5758800000000001,
      "min": 0.28365154020000005,
      "max": 0.31811160220000007
    },
    {
      "command": "pnpr@main",
      "mean": 0.3877531563000001,
      "stddev": 0.02099404281282597,
      "median": 0.38395187420000004,
      "user": 0.37062702000000003,
      "system": 0.7410522,
      "min": 0.35728659920000005,
      "max": 0.42223007720000005
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 224.7 ± 11.5 212.3 250.4 2.46 ± 0.16
pacquet@main 239.0 ± 16.3 201.5 268.0 2.62 ± 0.20
pnpr@HEAD 92.0 ± 3.9 86.9 99.9 1.01 ± 0.06
pnpr@main 91.3 ± 3.4 87.2 98.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22472660832,
      "stddev": 0.011465284952111913,
      "median": 0.22386493532,
      "user": 0.20173035384615381,
      "system": 0.07803678307692309,
      "min": 0.21227527632,
      "max": 0.25038431732000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.23902824373666667,
      "stddev": 0.01627892998710332,
      "median": 0.23757181032000002,
      "user": 0.21573611666666667,
      "system": 0.08018994333333333,
      "min": 0.20147557932000001,
      "max": 0.26802441632000007
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09199851094068968,
      "stddev": 0.003866547242340902,
      "median": 0.09221270232,
      "user": 0.03495278620689655,
      "system": 0.012643317931034483,
      "min": 0.08685111132000001,
      "max": 0.09992637732000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.09134980709419355,
      "stddev": 0.0034314952318503537,
      "median": 0.09154212332,
      "user": 0.0327412322580645,
      "system": 0.014450477419354835,
      "min": 0.08717655632,
      "max": 0.09815999332
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.128 ± 0.131 0.899 1.324 1.03 ± 0.21
pacquet@main 1.099 ± 0.182 0.628 1.271 1.00
pnpm@HEAD 3.037 ± 0.128 2.901 3.342 2.76 ± 0.47
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.1283442136444444,
      "stddev": 0.13085527450938064,
      "median": 1.1335205392,
      "user": 1.1594717066666669,
      "system": 0.3550847688888889,
      "min": 0.8988374452000001,
      "max": 1.3244450412
    },
    {
      "command": "pacquet@main",
      "mean": 1.0991018138666666,
      "stddev": 0.18232002604734981,
      "median": 1.1378101972,
      "user": 1.1584544844444444,
      "system": 0.2950764355555556,
      "min": 0.6276191402000001,
      "max": 1.2708238632
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.0369719216444446,
      "stddev": 0.1281701275643464,
      "median": 3.0299573422,
      "user": 4.451684706666666,
      "system": 0.2187832133333333,
      "min": 2.9008914402,
      "max": 3.3420561882
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 216.4 ± 5.6 207.7 223.1 1.00
pacquet@main 218.7 ± 4.0 211.6 227.1 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21636906929230773,
      "stddev": 0.005559407244975346,
      "median": 0.2186987286,
      "user": 0.17420869384615387,
      "system": 0.08002462307692307,
      "min": 0.2076909416,
      "max": 0.2231295076
    },
    {
      "command": "pacquet@main",
      "mean": 0.21866190890769227,
      "stddev": 0.004047871059677305,
      "median": 0.21933712360000002,
      "user": 0.1832179246153846,
      "system": 0.07398862307692307,
      "min": 0.2115910366,
      "max": 0.2270594776
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.496 ± 0.188 4.330 4.848 1.20 ± 0.09
pacquet@main 4.549 ± 0.159 4.384 4.837 1.21 ± 0.08
pnpr@HEAD 3.764 ± 0.260 3.483 4.125 1.00 ± 0.09
pnpr@main 3.753 ± 0.218 3.523 4.169 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.49627562498,
      "stddev": 0.18786353505950618,
      "median": 4.39933895318,
      "user": 1.5038522,
      "system": 1.5054341199999999,
      "min": 4.32993516018,
      "max": 4.84794887518
    },
    {
      "command": "pacquet@main",
      "mean": 4.54903757798,
      "stddev": 0.1587402584422214,
      "median": 4.4896924166800005,
      "user": 1.7687867000000002,
      "system": 1.7226823199999999,
      "min": 4.38419736418,
      "max": 4.83749641218
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.7637296206799995,
      "stddev": 0.2598001279607178,
      "median": 3.73928451918,
      "user": 2.1318619999999995,
      "system": 2.05583192,
      "min": 3.48264246318,
      "max": 4.12487924418
    },
    {
      "command": "pnpr@main",
      "mean": 3.75273999088,
      "stddev": 0.2183082851668761,
      "median": 3.68389954368,
      "user": 2.2373116,
      "system": 2.0948473200000004,
      "min": 3.52313174918,
      "max": 4.16912566318
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 234.8 ± 37.9 162.1 302.8 1.49 ± 0.26
pacquet@main 157.3 ± 9.2 145.4 172.0 1.00
pnpr@HEAD 183.1 ± 8.8 172.7 201.1 1.16 ± 0.09
pnpr@main 163.4 ± 12.4 145.3 187.5 1.04 ± 0.10

Confirmation (reversed target order)

Command Mean [ms] Min [ms] Max [ms] Relative
pnpr@main 180.1 ± 15.2 156.6 201.0 1.12 ± 0.14
pnpr@HEAD 174.2 ± 12.3 156.1 202.2 1.08 ± 0.13
pacquet@main 160.9 ± 15.8 144.8 199.9 1.00
pacquet@HEAD 191.6 ± 39.4 141.8 260.3 1.19 ± 0.27
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.23483013396000002,
      "stddev": 0.03791733204037322,
      "median": 0.23836168176,
      "user": 0.28456272,
      "system": 0.27638204,
      "min": 0.16207634726,
      "max": 0.30277431026
    },
    {
      "command": "pacquet@main",
      "mean": 0.15730630846000002,
      "stddev": 0.009161664941305284,
      "median": 0.15688108926000002,
      "user": 0.19367318666666666,
      "system": 0.19481670666666667,
      "min": 0.14541664726,
      "max": 0.17200964926
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.18313512161714288,
      "stddev": 0.00884842200130588,
      "median": 0.18036000576,
      "user": 0.21399494857142853,
      "system": 0.2074272542857143,
      "min": 0.17265487526,
      "max": 0.20112489126000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.16337429311714288,
      "stddev": 0.0123737006573061,
      "median": 0.16095595576,
      "user": 0.1987643057142857,
      "system": 0.17794246857142856,
      "min": 0.14532727926,
      "max": 0.18746799326000002
    }
  ],
  "confirmation": {
    "results": [
      {
        "command": "pnpr@main",
        "mean": 0.18013311390285716,
        "stddev": 0.01518159984405146,
        "median": 0.18405853876,
        "user": 0.21697937999999997,
        "system": 0.19856187714285714,
        "min": 0.15660693926000002,
        "max": 0.20101415726000002
      },
      {
        "command": "pnpr@HEAD",
        "mean": 0.1742084663266667,
        "stddev": 0.012298688445112243,
        "median": 0.17059214826000002,
        "user": 0.20627474666666668,
        "system": 0.18653175333333333,
        "min": 0.15608187226,
        "max": 0.20219883326000002
      },
      {
        "command": "pacquet@main",
        "mean": 0.16091800890705882,
        "stddev": 0.015756879061595872,
        "median": 0.15681101026000002,
        "user": 0.20755905647058817,
        "system": 0.18896137294117643,
        "min": 0.14484667226,
        "max": 0.19994916026
      },
      {
        "command": "pacquet@HEAD",
        "mean": 0.19157903272153848,
        "stddev": 0.03939684114706532,
        "median": 0.19250608826,
        "user": 0.2507353415384615,
        "system": 0.2115507892307692,
        "min": 0.14175610426000002,
        "max": 0.26031843926
      }
    ]
  }
}

@zkochan
zkochan marked this pull request as ready for review September 29, 2026 13:04
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Move v11, v12, and pnpr documentation beside their implementations

📝 Documentation ⚙️ Configuration changes 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Add version-specific pnpm and pnpr documentation, sidebars, and assets to their product
 directories.
• Validate documentation against the website before merging changes.
• Sync documentation from verified, published release tags, with independent retries and docs-only
 corrections.
Diagram

graph TD
  R["Successful release"] --> V["Verify release"] --> S["Website sync"] --> W["Published website"]
  P["v12 docs"] --> S
  E["v11 docs"] --> S
  N["pnpr docs"] --> S
  C["PR docs check"] --> S
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep documentation in pnpm.io
  • ➕ Avoids cross-repository publishing automation.
  • ➖ Behavior and documentation cannot reliably land in the same product PR.
2. Publish documentation on every merge
  • ➕ Makes corrections visible without a release-specific sync.
  • ➖ Could publish documentation for unreleased product behavior.

Recommendation: Keep documentation beside each implementation and publish from verified release snapshots. This preserves joint code-and-doc review without exposing unreleased behavior; the separate website remains responsible for version mapping and deployment.

Files changed (412) +34404 / -1

Tests (2) +104 / -1
prepare-docs-sync.test.mjsTest release-source selection +100/-0

Test release-source selection

• Covers published releases, excluded CLI releases, tag mismatches, and documentation-only corrections for all three products.

.github/scripts/prepare-docs-sync.test.mjs

ts-test-scope.test.mjsGuard new Rust CI exclusions +4/-1

Guard new Rust CI exclusions

• Permits recursive exclusions for product documentation while retaining the check against broader recursive exclusions.

.github/scripts/ts-test-scope.test.mjs

Documentation (401) +34074 / -0
AGENTS.mdIdentify product documentation locations +8/-0

Identify product documentation locations

• Directs contributors to update the appropriate product documentation and sidebar alongside behavior changes.

AGENTS.md

DOCUMENTATION.mdDocument editing and publishing workflow +86/-0

Document editing and publishing workflow

• Explains source ownership, local previews, release syncing, corrections, credentials, and rollout ordering.

DOCUMENTATION.md

RELEASING.mdAdd documentation sync to release guidance +9/-0

Add documentation sync to release guidance

• Asks release maintainers to check the separate website sync and points to retry instructions.

RELEASING.md

aliases.mdImport v12 aliases guide +71/-0

Import v12 aliases guide

• Places the v12 aliases reference beside its implementation.

pnpm/docs/aliases.md

cargo.mdImport v12 Cargo guide +122/-0

Import v12 Cargo guide

• Places the v12 Cargo documentation beside its implementation.

pnpm/docs/cargo.md

catalogs.mdImport v12 catalogs guide +215/-0

Import v12 catalogs guide

• Places the v12 catalogs guide beside its implementation.

pnpm/docs/catalogs.md

access.mdImport v12 access reference +106/-0

Import v12 access reference

• Places the v12 access command reference beside its implementation.

pnpm/docs/cli/access.md

add.mdImport v12 add reference +221/-0

Import v12 add reference

• Places the v12 add command reference beside its implementation.

pnpm/docs/cli/add.md

approve-builds.mdImport v12 approve-builds reference +58/-0

Import v12 approve-builds reference

• Places the v12 approve-builds command reference beside its implementation.

pnpm/docs/cli/approve-builds.md

audit.mdImport v12 audit reference +160/-0

Import v12 audit reference

• Places the v12 audit command reference beside its implementation.

pnpm/docs/cli/audit.md

bin.mdImport v12 bin reference +12/-0

Import v12 bin reference

• Places the v12 bin command reference beside its implementation.

pnpm/docs/cli/bin.md

bugs.mdImport v12 bugs reference +42/-0

Import v12 bugs reference

• Places the v12 bugs command reference beside its implementation.

pnpm/docs/cli/bugs.md

cache-delete.mdImport v12 cache-delete reference +12/-0

Import v12 cache-delete reference

• Places the v12 cache-delete command reference beside its implementation.

pnpm/docs/cli/cache-delete.md

cache-list-registries.mdImport v12 cache-list-registries reference +19/-0

Import v12 cache-list-registries reference

• Places the v12 cache-list-registries command reference beside its implementation.

pnpm/docs/cli/cache-list-registries.md

cache-list.mdImport v12 cache-list reference +12/-0

Import v12 cache-list reference

• Places the v12 cache-list command reference beside its implementation.

pnpm/docs/cli/cache-list.md

cache-path.mdImport v12 cache-path reference +27/-0

Import v12 cache-path reference

• Places the v12 cache-path command reference beside its implementation.

pnpm/docs/cli/cache-path.md

cache-prune.mdImport v12 cache-prune reference +55/-0

Import v12 cache-prune reference

• Places the v12 cache-prune command reference beside its implementation.

pnpm/docs/cli/cache-prune.md

cache-view.mdImport v12 cache-view reference +14/-0

Import v12 cache-view reference

• Places the v12 cache-view command reference beside its implementation.

pnpm/docs/cli/cache-view.md

cache.mdImport v12 cache reference +12/-0

Import v12 cache reference

• Places the v12 cache command reference beside its implementation.

pnpm/docs/cli/cache.md

cat-file.mdImport v12 cat-file reference +10/-0

Import v12 cat-file reference

• Places the v12 cat-file command reference beside its implementation.

pnpm/docs/cli/cat-file.md

cat-index.mdImport v12 cat-index reference +10/-0

Import v12 cat-index reference

• Places the v12 cat-index command reference beside its implementation.

pnpm/docs/cli/cat-index.md

change.mdImport v12 change reference +104/-0

Import v12 change reference

• Places the v12 change command reference beside its implementation.

pnpm/docs/cli/change.md

ci.mdImport v12 ci reference +16/-0

Import v12 ci reference

• Places the v12 ci command reference beside its implementation.

pnpm/docs/cli/ci.md

clean.mdImport v12 clean reference +18/-0

Import v12 clean reference

• Places the v12 clean command reference beside its implementation.

pnpm/docs/cli/clean.md

config.mdImport v12 config reference +127/-0

Import v12 config reference

• Places the v12 config command reference beside its implementation.

pnpm/docs/cli/config.md

create.mdImport v12 create reference +24/-0

Import v12 create reference

• Places the v12 create command reference beside its implementation.

pnpm/docs/cli/create.md

dedupe.mdImport v12 dedupe reference +24/-0

Import v12 dedupe reference

• Places the v12 dedupe command reference beside its implementation.

pnpm/docs/cli/dedupe.md

deploy.mdImport v12 deploy reference +107/-0

Import v12 deploy reference

• Places the v12 deploy command reference beside its implementation.

pnpm/docs/cli/deploy.md

deprecate.mdImport v12 deprecate reference +56/-0

Import v12 deprecate reference

• Places the v12 deprecate command reference beside its implementation.

pnpm/docs/cli/deprecate.md

dist-tag.mdImport v12 dist-tag reference +50/-0

Import v12 dist-tag reference

• Places the v12 dist-tag command reference beside its implementation.

pnpm/docs/cli/dist-tag.md

docs.mdImport v12 docs reference +38/-0

Import v12 docs reference

• Places the v12 docs command reference beside its implementation.

pnpm/docs/cli/docs.md

doctor.mdImport v12 doctor reference +94/-0

Import v12 doctor reference

• Places the v12 doctor command reference beside its implementation.

pnpm/docs/cli/doctor.md

env.mdImport v12 env reference +105/-0

Import v12 env reference

• Places the v12 env command reference beside its implementation.

pnpm/docs/cli/env.md

exec.mdImport v12 exec reference +92/-0

Import v12 exec reference

• Places the v12 exec command reference beside its implementation.

pnpm/docs/cli/exec.md

fetch.mdImport v12 fetch reference +139/-0

Import v12 fetch reference

• Places the v12 fetch command reference beside its implementation.

pnpm/docs/cli/fetch.md

find-hash.mdImport v12 find-hash reference +16/-0

Import v12 find-hash reference

• Places the v12 find-hash command reference beside its implementation.

pnpm/docs/cli/find-hash.md

help.mdImport v12 help reference +14/-0

Import v12 help reference

• Places the v12 help command reference beside its implementation.

pnpm/docs/cli/help.md

ignored-builds.mdImport v12 ignored-builds reference +8/-0

Import v12 ignored-builds reference

• Places the v12 ignored-builds command reference beside its implementation.

pnpm/docs/cli/ignored-builds.md

import.mdImport v12 import reference +11/-0

Import v12 import reference

• Places the v12 import command reference beside its implementation.

pnpm/docs/cli/import.md

init.mdImport v12 init reference +63/-0

Import v12 init reference

• Places the v12 init command reference beside its implementation.

pnpm/docs/cli/init.md

install-test.mdImport v12 install-test reference +9/-0

Import v12 install-test reference

• Places the v12 install-test command reference beside its implementation.

pnpm/docs/cli/install-test.md

install.mdImport v12 install reference +243/-0

Import v12 install reference

• Places the v12 install command reference beside its implementation.

pnpm/docs/cli/install.md

lane.mdImport v12 lane reference +72/-0

Import v12 lane reference

• Places the v12 lane command reference beside its implementation.

pnpm/docs/cli/lane.md

licenses.mdImport v12 licenses reference +48/-0

Import v12 licenses reference

• Places the v12 licenses command reference beside its implementation.

pnpm/docs/cli/licenses.md

link.mdImport v12 link reference +74/-0

Import v12 link reference

• Places the v12 link command reference beside its implementation.

pnpm/docs/cli/link.md

list.mdImport v12 list reference +84/-0

Import v12 list reference

• Places the v12 list command reference beside its implementation.

pnpm/docs/cli/list.md

login.mdImport v12 login reference +45/-0

Import v12 login reference

• Places the v12 login command reference beside its implementation.

pnpm/docs/cli/login.md

logout.mdImport v12 logout reference +31/-0

Import v12 logout reference

• Places the v12 logout command reference beside its implementation.

pnpm/docs/cli/logout.md

outdated.mdImport v12 outdated reference +65/-0

Import v12 outdated reference

• Places the v12 outdated command reference beside its implementation.

pnpm/docs/cli/outdated.md

owner.mdImport v12 owner reference +48/-0

Import v12 owner reference

• Places the v12 owner command reference beside its implementation.

pnpm/docs/cli/owner.md

pack-app.mdImport v12 pack-app reference +114/-0

Import v12 pack-app reference

• Places the v12 pack-app command reference beside its implementation.

pnpm/docs/cli/pack-app.md

pack.mdImport v12 pack reference +60/-0

Import v12 pack reference

• Places the v12 pack command reference beside its implementation.

pnpm/docs/cli/pack.md

patch-commit.mdImport v12 patch-commit reference +24/-0

Import v12 patch-commit reference

• Places the v12 patch-commit command reference beside its implementation.

pnpm/docs/cli/patch-commit.md

patch-remove.mdImport v12 patch-remove reference +10/-0

Import v12 patch-remove reference

• Places the v12 patch-remove command reference beside its implementation.

pnpm/docs/cli/patch-remove.md

patch.mdImport v12 patch reference +113/-0

Import v12 patch reference

• Places the v12 patch command reference beside its implementation.

pnpm/docs/cli/patch.md

peers.mdImport v12 peers reference +18/-0

Import v12 peers reference

• Places the v12 peers command reference beside its implementation.

pnpm/docs/cli/peers.md

ping.mdImport v12 ping reference +20/-0

Import v12 ping reference

• Places the v12 ping command reference beside its implementation.

pnpm/docs/cli/ping.md

pipeline.mdImport v12 pipeline reference +171/-0

Import v12 pipeline reference

• Places the v12 pipeline command reference beside its implementation.

pnpm/docs/cli/pipeline.md

pkg.mdImport v12 pkg reference +83/-0

Import v12 pkg reference

• Places the v12 pkg command reference beside its implementation.

pnpm/docs/cli/pkg.md

pm.mdImport v12 pm reference +28/-0

Import v12 pm reference

• Places the v12 pm command reference beside its implementation.

pnpm/docs/cli/pm.md

pnx.mdImport v12 pnx reference +119/-0

Import v12 pnx reference

• Places the v12 pnx command reference beside its implementation.

pnpm/docs/cli/pnx.md

prefix.mdImport v12 prefix reference +18/-0

Import v12 prefix reference

• Places the v12 prefix command reference beside its implementation.

pnpm/docs/cli/prefix.md

prune.mdImport v12 prune reference +22/-0

Import v12 prune reference

• Places the v12 prune command reference beside its implementation.

pnpm/docs/cli/prune.md

publish.mdImport v12 publish reference +189/-0

Import v12 publish reference

• Places the v12 publish command reference beside its implementation.

pnpm/docs/cli/publish.md

rebuild.mdImport v12 rebuild reference +18/-0

Import v12 rebuild reference

• Places the v12 rebuild command reference beside its implementation.

pnpm/docs/cli/rebuild.md

recursive.mdImport v12 recursive reference +114/-0

Import v12 recursive reference

• Places the v12 recursive command reference beside its implementation.

pnpm/docs/cli/recursive.md

remove.mdImport v12 remove reference +46/-0

Import v12 remove reference

• Places the v12 remove command reference beside its implementation.

pnpm/docs/cli/remove.md

repo.mdImport v12 repo reference +37/-0

Import v12 repo reference

• Places the v12 repo command reference beside its implementation.

pnpm/docs/cli/repo.md

root.mdImport v12 root reference +12/-0

Import v12 root reference

• Places the v12 root command reference beside its implementation.

pnpm/docs/cli/root.md

run.mdImport v12 run reference +231/-0

Import v12 run reference

• Places the v12 run command reference beside its implementation.

pnpm/docs/cli/run.md

runtime.mdImport v12 runtime reference +91/-0

Import v12 runtime reference

• Places the v12 runtime command reference beside its implementation.

pnpm/docs/cli/runtime.md

sbom.mdImport v12 sbom reference +109/-0

Import v12 sbom reference

• Places the v12 sbom command reference beside its implementation.

pnpm/docs/cli/sbom.md

search.mdImport v12 search reference +33/-0

Import v12 search reference

• Places the v12 search command reference beside its implementation.

pnpm/docs/cli/search.md

self-update.mdImport v12 self-update reference +50/-0

Import v12 self-update reference

• Places the v12 self-update command reference beside its implementation.

pnpm/docs/cli/self-update.md

set-script.mdImport v12 set-script reference +42/-0

Import v12 set-script reference

• Places the v12 set-script command reference beside its implementation.

pnpm/docs/cli/set-script.md

setup.mdImport v12 setup reference +22/-0

Import v12 setup reference

• Places the v12 setup command reference beside its implementation.

pnpm/docs/cli/setup.md

shim.mdImport v12 shim reference +85/-0

Import v12 shim reference

• Places the v12 shim command reference beside its implementation.

pnpm/docs/cli/shim.md

stage.mdImport v12 stage reference +115/-0

Import v12 stage reference

• Places the v12 stage command reference beside its implementation.

pnpm/docs/cli/stage.md

star.mdImport v12 star reference +30/-0

Import v12 star reference

• Places the v12 star command reference beside its implementation.

pnpm/docs/cli/star.md

start.mdImport v12 start reference +14/-0

Import v12 start reference

• Places the v12 start command reference beside its implementation.

pnpm/docs/cli/start.md

store.mdImport v12 store reference +60/-0

Import v12 store reference

• Places the v12 store command reference beside its implementation.

pnpm/docs/cli/store.md

tasks.mdImport v12 tasks reference +80/-0

Import v12 tasks reference

• Places the v12 tasks command reference beside its implementation.

pnpm/docs/cli/tasks.md

team.mdImport v12 team reference +81/-0

Import v12 team reference

• Places the v12 team command reference beside its implementation.

pnpm/docs/cli/team.md

test.mdImport v12 test reference +12/-0

Import v12 test reference

• Places the v12 test command reference beside its implementation.

pnpm/docs/cli/test.md

unlink.mdImport v12 unlink reference +35/-0

Import v12 unlink reference

• Places the v12 unlink command reference beside its implementation.

pnpm/docs/cli/unlink.md

unpublish.mdImport v12 unpublish reference +54/-0

Import v12 unpublish reference

• Places the v12 unpublish command reference beside its implementation.

pnpm/docs/cli/unpublish.md

update.mdImport v12 update reference +190/-0

Import v12 update reference

• Places the v12 update command reference beside its implementation.

pnpm/docs/cli/update.md

version.mdImport v12 version reference +100/-0

Import v12 version reference

• Places the v12 version command reference beside its implementation.

pnpm/docs/cli/version.md

view.mdImport v12 view reference +46/-0

Import v12 view reference

• Places the v12 view command reference beside its implementation.

pnpm/docs/cli/view.md

whoami.mdImport v12 whoami reference +20/-0

Import v12 whoami reference

• Places the v12 whoami command reference beside its implementation.

pnpm/docs/cli/whoami.md

why.mdImport v12 why reference +61/-0

Import v12 why reference

• Places the v12 why command reference beside its implementation.

pnpm/docs/cli/why.md

with.mdImport v12 with reference +44/-0

Import v12 with reference

• Places the v12 with command reference beside its implementation.

pnpm/docs/cli/with.md

completion.mdImport v12 completion guide +42/-0

Import v12 completion guide

• Places the v12 completion guide beside its implementation.

pnpm/docs/completion.md

config-dependencies.mdImport v12 config-dependencies guide +110/-0

Import v12 config-dependencies guide

• Places the v12 config-dependencies guide beside its implementation.

pnpm/docs/config-dependencies.md

configuring.mdImport v12 configuring guide +66/-0

Import v12 configuring guide

• Places the v12 configuring guide beside its implementation.

pnpm/docs/configuring.md

continuous-integration.mdImport v12 CI guide +344/-0

Import v12 CI guide

• Places the v12 continuous-integration guide beside its implementation.

pnpm/docs/continuous-integration.md

crypto-donations.mdImport v12 crypto-donations page +36/-0

Import v12 crypto-donations page

• Places the v12 crypto-donations page with the product docs.

pnpm/docs/crypto-donations.md

docker.mdImport v12 Docker guide +219/-0

Import v12 Docker guide

• Places the v12 Docker guide beside its implementation.

pnpm/docs/docker.md

errors.mdImport v12 errors guide +94/-0

Import v12 errors guide

• Places the v12 errors guide beside its implementation.

pnpm/docs/errors.md

faq.mdImport v12 FAQ +176/-0

Import v12 FAQ

• Places the v12 FAQ beside its implementation.

pnpm/docs/faq.md

feature-comparison.mdImport v12 feature comparison +48/-0

Import v12 feature comparison

• Places the v12 feature comparison beside its implementation.

pnpm/docs/feature-comparison.md

filtering.mdImport v12 filtering guide +245/-0

Import v12 filtering guide

• Places the v12 filtering guide beside its implementation.

pnpm/docs/filtering.md

finders.mdImport v12 finders guide +92/-0

Import v12 finders guide

• Places the v12 finders guide beside its implementation.

pnpm/docs/finders.md

git-worktrees.mdImport v12 git-worktrees guide +144/-0

Import v12 git-worktrees guide

• Places the v12 git-worktrees guide beside its implementation.

pnpm/docs/git-worktrees.md

git.mdImport v12 Git guide +24/-0

Import v12 Git guide

• Places the v12 Git guide beside its implementation.

pnpm/docs/git.md

git_branch_lockfiles.mdImport v12 branch-lockfiles guide +55/-0

Import v12 branch-lockfiles guide

• Places the v12 branch-lockfiles guide beside its implementation.

pnpm/docs/git_branch_lockfiles.md

global-packages.mdImport v12 global-packages guide +286/-0

Import v12 global-packages guide

• Places the v12 global-packages guide beside its implementation.

pnpm/docs/global-packages.md

global-virtual-store.mdImport v12 global-virtual-store guide +74/-0

Import v12 global-virtual-store guide

• Places the v12 global-virtual-store guide beside its implementation.

pnpm/docs/global-virtual-store.md

how-peers-are-resolved.mdImport v12 peer-resolution guide +129/-0

Import v12 peer-resolution guide

• Places the v12 peer-resolution guide beside its implementation.

pnpm/docs/how-peers-are-resolved.md

installation.mdImport v12 installation guide +181/-0

Import v12 installation guide

• Places the v12 installation guide beside its implementation.

pnpm/docs/installation.md

limitations.mdImport v12 limitations page +22/-0

Import v12 limitations page

• Places the v12 limitations page beside its implementation.

pnpm/docs/limitations.md

lockfile.mdImport v12 lockfile guide +192/-0

Import v12 lockfile guide

• Places the v12 lockfile guide beside its implementation.

pnpm/docs/lockfile.md

logos.mdImport v12 logos page +44/-0

Import v12 logos page

• Places the v12 logos page and its referenced assets with the product docs.

pnpm/docs/logos.md

migration.mdImport v12 migration guide +41/-0

Import v12 migration guide

• Places the v12 migration guide beside its implementation.

pnpm/docs/migration.md

motivation.mdImport v12 introduction +60/-0

Import v12 introduction

• Places the v12 motivation page beside its implementation.

pnpm/docs/motivation.md

npmrc.mdImport v12 npmrc guide +338/-0

Import v12 npmrc guide

• Places the v12 npmrc guide beside its implementation.

pnpm/docs/npmrc.md

only-allow-pnpm.mdImport v12 pnpm-enforcement guide +21/-0

Import v12 pnpm-enforcement guide

• Places the v12 only-allow-pnpm guide beside its implementation.

pnpm/docs/only-allow-pnpm.md

package-managers.mdImport v12 package-managers guide +117/-0

Import v12 package-managers guide

• Places the v12 package-managers guide beside its implementation.

pnpm/docs/package-managers.md

package-sources.mdImport v12 package-sources guide +264/-0

Import v12 package-sources guide

• Places the v12 package-sources guide beside its implementation.

pnpm/docs/package-sources.md

package_json.mdImport v12 package.json guide +458/-0

Import v12 package.json guide

• Places the v12 package.json reference beside its implementation.

pnpm/docs/package_json.md

pnpm-cli.mdImport v12 CLI guide +113/-0

Import v12 CLI guide

• Places the v12 CLI overview beside its implementation.

pnpm/docs/pnpm-cli.md

pnpm-vs-npm.mdImport v12 pnpm comparison +52/-0

Import v12 pnpm comparison

• Places the v12 pnpm-versus-npm comparison beside its implementation.

pnpm/docs/pnpm-vs-npm.md

pnpmfile.mdImport v12 pnpmfile guide +654/-0

Import v12 pnpmfile guide

• Places the v12 pnpmfile reference beside its implementation.

pnpm/docs/pnpmfile.md

podman.mdImport v12 Podman guide +47/-0

Import v12 Podman guide

• Places the v12 Podman guide beside its implementation.

pnpm/docs/podman.md

production.mdImport v12 production guide +20/-0

Import v12 production guide

• Places the v12 production guide beside its implementation.

pnpm/docs/production.md

python.mdImport v12 Python guide +277/-0

Import v12 Python guide

• Places the v12 Python guide beside its implementation.

pnpm/docs/python.md

registries.mdImport v12 registries guide +192/-0

Import v12 registries guide

• Places the v12 registries guide beside its implementation.

pnpm/docs/registries.md

registry-revisions.mdImport v12 registry-revisions guide +172/-0

Import v12 registry-revisions guide

• Places the v12 registry-revisions guide beside its implementation.

pnpm/docs/registry-revisions.md

scripts.mdImport v12 scripts guide +55/-0

Import v12 scripts guide

• Places the v12 scripts guide beside its implementation.

pnpm/docs/scripts.md

settings.mdImport v12 settings overview +380/-0

Import v12 settings overview

• Places the v12 settings overview with its detailed settings references.

pnpm/docs/settings.md

_catalogMode.mdxImport v12 catalog-mode fragment +15/-0

Import v12 catalog-mode fragment

• Adds the v12 reusable catalog-mode settings fragment.

pnpm/docs/settings/_catalogMode.mdx

_catalogPrune.mdxImport v12 catalog-prune fragment +12/-0

Import v12 catalog-prune fragment

• Adds the v12 reusable catalog-prune settings fragment.

pnpm/docs/settings/_catalogPrune.mdx

_cpuFlag.mdxImport v12 CPU fragment +5/-0

Import v12 CPU fragment

• Adds the v12 reusable CPU settings fragment.

pnpm/docs/settings/_cpuFlag.mdx

_enablePrePostScripts.mdxImport v12 script-hooks fragment +7/-0

Import v12 script-hooks fragment

• Adds the v12 reusable pre/post-script settings fragment.

pnpm/docs/settings/_enablePrePostScripts.mdx

_findBy.mdxImport v12 finder fragment +7/-0

Import v12 finder fragment

• Adds the v12 reusable finder settings fragment.

pnpm/docs/settings/_findBy.mdx

_libcFlag.mdxImport v12 libc fragment +5/-0

Import v12 libc fragment

• Adds the v12 reusable libc settings fragment.

pnpm/docs/settings/_libcFlag.mdx

_osFlag.mdxImport v12 OS fragment +5/-0

Import v12 OS fragment

• Adds the v12 reusable OS settings fragment.

pnpm/docs/settings/_osFlag.mdx

_scriptShell.mdxImport v12 script-shell fragment +14/-0

Import v12 script-shell fragment

• Adds the v12 reusable script-shell settings fragment.

pnpm/docs/settings/_scriptShell.mdx

_shellEmulator.mdxImport v12 shell-emulator fragment +27/-0

Import v12 shell-emulator fragment

• Adds the v12 reusable shell-emulator settings fragment.

pnpm/docs/settings/_shellEmulator.mdx

build.mdImport v12 build settings +283/-0

Import v12 build settings

• Places the v12 build settings reference beside its implementation.

pnpm/docs/settings/build.md

cli.mdImport v12 CLI settings +221/-0

Import v12 CLI settings

• Places the v12 CLI settings reference beside its implementation.

pnpm/docs/settings/cli.md

dependency-resolution.mdImport v12 resolution settings +591/-0

Import v12 resolution settings

• Places the v12 dependency-resolution settings beside their implementation.

pnpm/docs/settings/dependency-resolution.md

network.mdImport v12 network settings +152/-0

Import v12 network settings

• Places the v12 network settings reference beside its implementation.

pnpm/docs/settings/network.md

node-modules.mdImport v12 node-modules settings +441/-0

Import v12 node-modules settings

• Places the v12 node-modules settings beside their implementation.

pnpm/docs/settings/node-modules.md

other.mdImport v12 additional settings +398/-0

Import v12 additional settings

• Places the v12 additional settings reference beside its implementation.

pnpm/docs/settings/other.md

peer-dependencies.mdImport v12 peer settings +166/-0

Import v12 peer settings

• Places the v12 peer-dependency settings beside their implementation.

pnpm/docs/settings/peer-dependencies.md

store.mdImport v12 store settings +165/-0

Import v12 store settings

• Places the v12 store settings reference beside its implementation.

pnpm/docs/settings/store.md

versioning.mdImport v12 versioning settings +103/-0

Import v12 versioning settings

• Places the v12 versioning settings beside their implementation.

pnpm/docs/settings/versioning.md

sidebars.jsonImport v12 documentation navigation +226/-0

Import v12 documentation navigation

• Defines sidebar categories and links for the v12 documentation source.

pnpm/docs/sidebars.json

pnpm-install.svgImport v12 install animation +1/-0

Import v12 install animation

• Adds the SVG demonstration referenced by installation documentation.

pnpm/docs/static/img/demos/pnpm-install.svg

installation-stages-of-other-pms.svgImport v12 installation comparison graphic +149/-0

Import v12 installation comparison graphic

• Adds a diagram referenced by the v12 documentation.

pnpm/docs/static/img/installation-stages-of-other-pms.svg

installation-stages-of-pnpm.svgImport v12 installation stages graphic +149/-0

Import v12 installation stages graphic

• Adds a diagram referenced by the v12 documentation.

pnpm/docs/static/img/installation-stages-of-pnpm.svg

isolated-node-modules.svgImport v12 module-layout graphic +74/-0

Import v12 module-layout graphic

• Adds the isolated-node-modules illustration.

pnpm/docs/static/img/isolated-node-modules.svg

pnpm-light-no-text.pngImport v12 light icon PNG +0/-0

Import v12 light icon PNG

• Adds a PNG logo used by the documentation.

pnpm/docs/static/img/logos/pnpm-light-no-text.png

pnpm-light-no-text.svgImport v12 light icon SVG +3/-0

Import v12 light icon SVG

• Adds an SVG logo used by the documentation.

pnpm/docs/static/img/logos/pnpm-light-no-text.svg

pnpm-light.pngImport v12 light logo PNG +0/-0

Import v12 light logo PNG

• Adds a PNG logo used by the documentation.

pnpm/docs/static/img/logos/pnpm-light.png

pnpm-standard-no-text.pngImport v12 standard icon PNG +0/-0

Import v12 standard icon PNG

• Adds a PNG logo used by the documentation.

[Comment truncated to fit github's 65,536-char limit.]

@qodo-code-review

qodo-code-review Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Website build code can steal the sync token ✗ Dismissed
Description
The sync workflow executes the mutable website checkout before running git commit in that same
checkout with DOCS_SYNC_TOKEN exposed as GH_TOKEN. If website installation or build code creates
a Git pre-commit hook, that hook runs during publication with access to the token.
Code

.github/workflows/sync-docs.yml[92]

+          git commit -m "docs: sync ${LINE} documentation for ${VERSION}" -m "Generated from pnpm/pnpm. Written by release automation."
Relevance

●●● Strong

Recent precedents accept isolating untrusted workflow code from secret-bearing operations and
reducing token exposure.

PR-#13072
PR-#12135

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow checks out the website's current main branch, executes its install and build commands,
and subsequently commits in that checkout with the cross-repository token in the step environment. A
hook left in the checkout is executed by the later commit.

.github/workflows/sync-docs.yml[51-57]
.github/workflows/sync-docs.yml[63-83]
.github/workflows/sync-docs.yml[88-94]
DOCUMENTATION.md[70-75]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Website code runs before a Git commit that has access to the cross-repository sync token. Earlier build steps can leave hooks or other executable state in the checkout.
## Fix Focus Areas
- .github/workflows/sync-docs.yml[51-57]
- .github/workflows/sync-docs.yml[63-94]
## Recommended Fix
Perform the credentialed commit and push in a fresh, isolated checkout that has not run website installation or build code. Transfer only the generated documentation files needed for publication, and keep the token unavailable to build steps.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Registry docs trigger the full test suite ✓ Resolved
Description
determineTestScope classifies pnpr/docs/** as root-affecting because its affected-package
exemption covers pnpm11/ and pnpm/, but not registry documentation. A
registry-documentation-only pull request therefore selects ci:test-all and runs the full
TypeScript test pipeline despite the new Rust and benchmark exclusions.
Code

pnpr/docs/container-images.md[1]

+---
Relevance

●●● Strong

Deterministic docs-only scope omission causing unnecessary full tests matches accepted CI-scope and
coverage fixes.

PR-#12612
PR-#15228

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new documentation resides under pnpr/docs, while the classifier sends files outside its narrow
exemptions to ci:test-all; the test workflow runs the selected script with --full --no-cache.

pnpr/docs/container-images.md[1-8]
.github/scripts/ts-test-scope.mjs[6-22]
.github/workflows/test.yml[153-161]
.github/workflows/test.yml[183-194]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The newly introduced registry documentation path falls through the TypeScript test-scope classifier to the full-suite path on documentation-only pull requests.
## Fix Focus Areas
- .github/scripts/ts-test-scope.mjs[7-22]
- .github/scripts/ts-test-scope.test.mjs[69-89]
## Recommended Fix
Classify `pnpr/docs/**` as documentation that does not affect TypeScript packages, and add a test for a registry-documentation-only change.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Key rotation blocks old release retries 🐞 Bug ☼ Reliability
Description
The sync workflow imports release-signing keys from its current default-branch checkout before
verifying the requested tag. If a key used for an earlier release is later removed, a manual retry
for that published release fails verification even though the Release workflow verified it using
keys checked out at the release tag.
Code

.github/workflows/sync-docs.yml[44]

+          gpg --batch --quiet --import .github/release-keys/*.asc
Relevance

●● Moderate

Reliability concern is plausible, but no close precedent establishes team acceptance for
tag-specific key rotation retries.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The sync checkout precedes key import and tag verification, whereas the release verification
checkout uses the tag commit and its committed keys. The documented manual retry path can target an
older release.

.github/workflows/sync-docs.yml[31-45]
.github/scripts/prepare-docs-sync.mjs[20-22]
.github/workflows/release.yml[79-86]
.github/workflows/release.yml[110-127]
DOCUMENTATION.md[48-51]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Manual documentation retries verify historical release tags using only the current checkout's signing keys, so removing a rotated key prevents retries for releases signed with it.
## Fix Focus Areas
- .github/workflows/sync-docs.yml[31-45]
- .github/scripts/prepare-docs-sync.mjs[20-22]
## Recommended Fix
Use an explicitly trusted key history for sync verification, or retain retired release-verification keys so historical signed tags remain verifiable after rotation.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Compliance rules (platform): 73 rules
✅ Skills: review-code
✅ Cross-repo context — repo relationships
  Explored: repo: pnpm/pnpm.io (branch: sync-released-docs, sha: 0e0816fc) — View relationship
Review mode: 🚀 Fast: This is a small, localized test-only adjustment that changes mock timestamp behavior and adds a timestamp case, with no production, security-sensitive, or broad behavioral impact.

Grey Divider

Tip of the day
💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit b3774c0

Results up to commit f2b89d3 ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. Website build code can steal the sync token ✗ Dismissed
Description
The sync workflow executes the mutable website checkout before running git commit in that same
checkout with DOCS_SYNC_TOKEN exposed as GH_TOKEN. If website installation or build code creates
a Git pre-commit hook, that hook runs during publication with access to the token.
Code

.github/workflows/sync-docs.yml[92]

+          git commit -m "docs: sync ${LINE} documentation for ${VERSION}" -m "Generated from pnpm/pnpm. Written by release automation."
Relevance

●●● Strong

Recent precedents accept isolating untrusted workflow code from secret-bearing operations and
reducing token exposure.

PR-#13072
PR-#12135

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow checks out the website's current main branch, executes its install and build commands,
and subsequently commits in that checkout with the cross-repository token in the step environment. A
hook left in the checkout is executed by the later commit.

.github/workflows/sync-docs.yml[51-57]
.github/workflows/sync-docs.yml[63-83]
.github/workflows/sync-docs.yml[88-94]
DOCUMENTATION.md[70-75]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Website code runs before a Git commit that has access to the cross-repository sync token. Earlier build steps can leave hooks or other executable state in the checkout.
## Fix Focus Areas
- .github/workflows/sync-docs.yml[51-57]
- .github/workflows/sync-docs.yml[63-94]
## Recommended Fix
Perform the credentialed commit and push in a fresh, isolated checkout that has not run website installation or build code. Transfer only the generated documentation files needed for publication, and keep the token unavailable to build steps.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended
2. Registry docs trigger the full test suite ✓ Resolved
Description
determineTestScope classifies pnpr/docs/** as root-affecting because its affected-package
exemption covers pnpm11/ and pnpm/, but not registry documentation. A
registry-documentation-only pull request therefore selects ci:test-all and runs the full
TypeScript test pipeline despite the new Rust and benchmark exclusions.
Code

pnpr/docs/container-images.md[1]

+---
Relevance

●●● Strong

Deterministic docs-only scope omission causing unnecessary full tests matches accepted CI-scope and
coverage fixes.

PR-#12612
PR-#15228

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new documentation resides under pnpr/docs, while the classifier sends files outside its narrow
exemptions to ci:test-all; the test workflow runs the selected script with --full --no-cache.

pnpr/docs/container-images.md[1-8]
.github/scripts/ts-test-scope.mjs[6-22]
.github/workflows/test.yml[153-161]
.github/workflows/test.yml[183-194]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The newly introduced registry documentation path falls through the TypeScript test-scope classifier to the full-suite path on documentation-only pull requests.
## Fix Focus Areas
- .github/scripts/ts-test-scope.mjs[7-22]
- .github/scripts/ts-test-scope.test.mjs[69-89]
## Recommended Fix
Classify `pnpr/docs/**` as documentation that does not affect TypeScript packages, and add a test for a registry-documentation-only change.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Key rotation blocks old release retries 🐞 Bug ☼ Reliability
Description
The sync workflow imports release-signing keys from its current default-branch checkout before
verifying the requested tag. If a key used for an earlier release is later removed, a manual retry
for that published release fails verification even though the Release workflow verified it using
keys checked out at the release tag.
Code

.github/workflows/sync-docs.yml[44]

+          gpg --batch --quiet --import .github/release-keys/*.asc
Relevance

●● Moderate

Reliability concern is plausible, but no close precedent establishes team acceptance for
tag-specific key rotation retries.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The sync checkout precedes key import and tag verification, whereas the release verification
checkout uses the tag commit and its committed keys. The documented manual retry path can target an
older release.

.github/workflows/sync-docs.yml[31-45]
.github/scripts/prepare-docs-sync.mjs[20-22]
.github/workflows/release.yml[79-86]
.github/workflows/release.yml[110-127]
DOCUMENTATION.md[48-51]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Manual documentation retries verify historical release tags using only the current checkout's signing keys, so removing a rotated key prevents retries for releases signed with it.
## Fix Focus Areas
- .github/workflows/sync-docs.yml[31-45]
- .github/scripts/prepare-docs-sync.mjs[20-22]
## Recommended Fix
Use an explicitly trusted key history for sync verification, or retain retired release-verification keys so historical signed tags remain verifiable after rotation.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Qodo Logo

Comment thread .github/workflows/sync-docs.yml Resolved
@qodo-code-review

qodo-code-review Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Latest suggestions up to b3774c0

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

CategorySuggestion                                                                                                                                    Impact
General
Match custom dependency specifiers correctly

Update the canResolve and resolve examples to match the company-cdn: protocol
using bareSpecifier instead of alias.

pnpm11/docs/pnpmfile.md [459-465]

 canResolve: (wantedDependency) => {
-  return wantedDependency.alias.startsWith('company-cdn:')
+  return wantedDependency.bareSpecifier?.startsWith('company-cdn:')
 },
 
 resolve: async (wantedDependency, opts) => {
-  const actualName = wantedDependency.alias.replace('company-cdn:', '')
-  const version = await fetchVersionFromCompanyCDN(actualName, wantedDependency.bareSpecifier)
+  const actualName = wantedDependency.alias
+  const version = await fetchVersionFromCompanyCDN(
+    actualName,
+    wantedDependency.bareSpecifier.slice('company-cdn:'.length)
+  )

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 7

__

Why: Fixes a logical error in the documentation's code example where the custom protocol is incorrectly matched against the package alias rather than the specifier.

Medium
Match custom dependency specifiers

Modify the canResolve and resolve examples to use bareSpecifier instead of alias
for matching custom protocol dependencies.

pnpm/docs/pnpmfile.md [488-493]

 canResolve: (wantedDependency) => {
-  return wantedDependency.alias.startsWith('company-cdn:')
+  return wantedDependency.bareSpecifier.startsWith('company-cdn:')
 },
 
 resolve: async (wantedDependency, opts) => {
-  const actualName = wantedDependency.alias.replace('company-cdn:', '')
+  const actualName = wantedDependency.bareSpecifier.slice('company-cdn:'.length)

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 6

__

Why: This suggestion corrects a code example in the documentation, ensuring it appropriately evaluates the bareSpecifier rather than the alias for custom protocols, which prevents users from copying faulty code.

Low
Restrict fetcher to tarball packages

Update the canFetch condition to verify that resolution.tarball is a string
before proceeding.

pnpm/docs/pnpmfile.md [544-546]

 canFetch: (pkgId, resolution) => {
-  return pkgId.startsWith('@company/')
+  return pkgId.startsWith('@company/') && typeof resolution.tarball === 'string'
 },

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 6

__

Why: Adding a defensive check for the presence of a tarball URL prevents the documentation's example code from throwing errors when handling non-tarball dependencies.

Low
  • Update

Previous suggestions

Suggestions up to commit e04386f
CategorySuggestion                                                                                                                                    Impact
General
Match the protocol in specifiers

Match the custom protocol in bareSpecifier instead of alias. Update the code
example to reflect how dependencies are actually parsed.

pnpm11/docs/pnpmfile.md [459-465]

 canResolve: (wantedDependency) => {
-  return wantedDependency.alias.startsWith('company-cdn:')
+  return wantedDependency.bareSpecifier.startsWith('company-cdn:')
 },
 
 resolve: async (wantedDependency, opts) => {
-  const actualName = wantedDependency.alias.replace('company-cdn:', '')
-  const version = await fetchVersionFromCompanyCDN(actualName, wantedDependency.bareSpecifier)
+  const actualName = wantedDependency.alias
+  const version = await fetchVersionFromCompanyCDN(
+    actualName,
+    wantedDependency.bareSpecifier.slice('company-cdn:'.length)
+  )
Suggestion importance[1-10]: 8

__

Why: The suggestion corrects a logical error in the documentation code example, ensuring the custom protocol is correctly matched against bareSpecifier rather than the package alias.

Medium
Match only rewritable tarball resolutions

Refine canFetch in the custom fetcher example to only match resolutions that
have a tarball URL from the expected registry. This prevents .replace() from
throwing an error on non-tarball resolutions.

pnpm/docs/pnpmfile.md [544-546]

 canFetch: (pkgId, resolution) => {
-  return pkgId.startsWith('@company/')
+  return pkgId.startsWith('@company/') &&
+    typeof resolution.tarball === 'string' &&
+    resolution.tarball.startsWith('https://registry.npmjs.org/')
 },
Suggestion importance[1-10]: 7

__

Why: The suggestion improves the robustness of the documentation example by preventing potential runtime errors when resolution.tarball is undefined.

Medium
Security
Preserve integrity for custom downloads

Update the resolver example to fetch and return the package's integrity. This
ensures the integrity check in the fetcher example functions correctly.

pnpm/docs/pnpmfile.md [494-503]

-const version = await fetchVersionFromCompanyCDN(actualName, wantedDependency.bareSpecifier)
+const { version, integrity } = await fetchPackageMetadataFromCompanyCDN(actualName, wantedDependency.bareSpecifier)
 
 return {
   id: `company-cdn:${actualName}@${version}`,
   resolution: {
     type: 'custom:cdn',
     cdnUrl: `https://cdn.company.com/packages/${actualName}/${version}.tgz`,
+    integrity,
     cachedAt: Date.now(), // Custom metadata for shouldRefreshResolution
   },
 }
Suggestion importance[1-10]: 7

__

Why: The suggestion corrects a documentation example by ensuring integrity is passed, matching how it is used later in the same example.

Medium
Suggestions up to commit f2b89d3
CategorySuggestion                                                                                                                                    Impact
Possible issue
Safely access nested properties to prevent crashes on undefined objects

Use optional chaining (?.) when accessing pkg.dependencies.baz and pkg.version
to prevent crashes on packages missing these fields.

pnpm/docs/pnpmfile.md [53-70]

 function readPackage(pkg, context) {
   // Override the manifest of [email protected] after downloading it from the registry
-  if (pkg.name === 'foo' && pkg.version.startsWith('1.')) {
+  if (pkg.name === 'foo' && pkg.version?.startsWith('1.')) {
     // Replace [email protected] with [email protected]
     pkg.dependencies = {
       ...pkg.dependencies,
       bar: '^2.0.0'
     }
     context.log('bar@1 => bar@2 in dependencies of foo')
   }
 
   // This will change any packages using [email protected] to use [email protected]
-  if (pkg.dependencies.baz) {
+  if (pkg.dependencies?.baz) {
     pkg.dependencies.baz = '1.2.3';
   }
 
   return pkg
 }
Suggestion importance[1-10]: 6

__

Why: Adding optional chaining prevents potential runtime errors for users who copy-paste this documentation example into their .pnpmfile.mjs and run it on packages missing dependencies or version.

Low
Prevent crashes when deleting nested properties on undefined objects

Use optional chaining when deleting pkg.scripts.test to safely handle packages
that do not have a scripts property defined.

pnpm/docs/pnpmfile.md [177-183]

 function beforePacking(pkg) {
   // Remove development-only fields from published package
   delete pkg.devDependencies
-  delete pkg.scripts.test
+  delete pkg.scripts?.test
 
   // Add publication metadata
   pkg.publishedAt = new Date().toISOString()
Suggestion importance[1-10]: 6

__

Why: Using optional chaining for the delete operator ensures the code snippet won't throw a TypeError if a package doesn't define any scripts, improving the robustness of the example.

Low
Prevent TypeError by verifying dependencies object exists

Verify pkg.dependencies exists before accessing its properties to prevent a
potential TypeError.

pnpm11/docs/pnpmfile.md [64-67]

 // This will change any packages using [email protected] to use [email protected]
-if (pkg.dependencies.baz) {
+if (pkg.dependencies && pkg.dependencies.baz) {
   pkg.dependencies.baz = '1.2.3';
 }
Suggestion importance[1-10]: 4

__

Why: Adding a safeguard against an undefined dependencies object in the documentation example prevents potential runtime errors for users copying the snippet.

Low
Use optional chaining when deleting script properties

Use optional chaining when deleting pkg.scripts.test to prevent a potential
TypeError.

pnpm11/docs/pnpmfile.md [152-158]

 function beforePacking(pkg) {
   // Remove development-only fields from published package
   delete pkg.devDependencies
-  delete pkg.scripts.test
+  delete pkg.scripts?.test
 
   // Add publication metadata
   pkg.publishedAt = new Date().toISOString()
Suggestion importance[1-10]: 4

__

Why: Using optional chaining when deleting nested properties in the example code prevents a TypeError if pkg.scripts is undefined.

Low

@zkochan

zkochan commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

Verified the review findings and addressed them:

  • Isolated publication in a separate job and clean checkout. Website installation/build code never runs on the credentialed runner. The artifact copier permits only documentation paths and rejects Git metadata, symlinks, and incomplete transfers. The credential is available only during the final push.
  • Exempted registry documentation from the full TypeScript test selection and added coverage for a pnpr-docs-only change.
  • Fixed both versions' hook examples to handle absent version, dependencies, and scripts fields. Corrected the company contribution link to the new source path.
  • Kept release-tag verification tied to the current trusted key set. Automatically recovering removed keys could re-trust a revoked signer. The guide now explains that removing a key also disables historical retries signed by it; an authorized manual publication from main is available without a release tag.

Also included the requested manual publication from main: run Sync documentation on main with both inputs empty to publish all three product docs trees. Automatic releases retain their signed-tag and npm-publication checks.

Validation: 13 source-selection, artifact-boundary, and CI-scope tests passed; actionlint and zizmor passed; website build and all 6,006 URL checks passed. The artifact copier also passed against the actual website docs. CI is running after the push. CodeRabbit skipped its initial review because the imported docs exceed its 300-file limit.


Written by an agent (Codex, GPT-6).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit e04386f

@blacksmith-sh

This comment has been minimized.

@zkochan

zkochan commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

CI found a clock-dependent test fixture in checkDepsStatus.test.ts. I reproduced it by setting the validation timestamp to 1700000000000: the mocked wanted and installed lockfiles had equal whole-second mtimes, so the coarse-filesystem freshness check correctly requested content validation, which the fixture did not supply. At 1700000000001, the same test passed.

Fixed in b3774c0 by making the installed lockfile newer than the wanted lockfile in the up-to-date fixture and covering both timestamp cases explicitly. All 100 tests in the file pass locally. No production dependency-status code changed. The other checks from the previous run passed; CI is rerunning on this commit.


Written by an agent (Codex, GPT-6).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit b3774c0

@zkochan
zkochan merged commit 07839df into main Sep 29, 2026
65 checks passed
@zkochan
zkochan deleted the move-docs branch September 29, 2026 13:56
zkochan added a commit that referenced this pull request Oct 28, 2026
modifiedAtOrAfter widens whole-second mtimes (mtimeMs % 1000 === 0) by
a second. Date.now() lands on an exact second once in a thousand runs,
causing tests that derive fake mtimes from Date.now() - 10_000 to report
unmodified files as modified. Use recentTimestamp() across the suite
instead of fixing individual tests piecemeal (#16385,
#16482).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant