Repository navigation
fix(release): verify internal package payloads before publish - #13185
Conversation
📝 WalkthroughWalkthroughAdds a CLI that verifies declared package payload files against npm pack results, integrates it into the release workflow, and records a patch release for ChangesPacked payload verification
Package release metadata
Estimated code review effort: 4 (Complex) | ~45 minutes Assessment against linked issues
Out-of-scope changes
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/release.ymlTraceback (most recent call last): 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. 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. Comment |
PR Summary by QodoRelease: verify packed workspace tarballs match package.json payload
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Confidence Score: 5/5This looks safe to merge after the existing review feedback is resolved.
Reviews (4): Last reviewed commit: "fix(release): verify payloads via one pa..." | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Zero chunk size failure
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/scripts/verify-packed-package-payload.mjs:
- Around line 147-159: Update globToRegExp so its regex-escaping character class
also escapes literal `$`, and translate glob `?` into a pattern matching exactly
one non-slash character. Apply the wildcard conversion alongside the existing
`*` handling so patterns such as `foo?.js` cannot match a missing character.
- Around line 130-132: Update the error handling around the spawnSync result in
the packed-entry verification flow so missing stderr does not cause a secondary
TypeError. Safely read result.stderr only when present, while preserving the
existing “Missing packed entry” context and exposing the original spawn failure
details when available.
- Around line 76-80: Update the add function’s file-filtering logic to
explicitly ignore package.json before it is normalized or added to
expectedFiles, while preserving existing exclusions and validation for all other
files.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 9fa37371-20ee-490c-92be-7e53602a62a0
📒 Files selected for processing (3)
.changeset/verify-packed-payloads.md.github/scripts/verify-packed-package-payload.mjs.github/workflows/release.yml
|
Code review by qodo was updated up to the latest commit 072dd82 |
072dd82 to
273f078
Compare
|
Updated this PR to address the actionable verifier feedback:
Local verification:
I attempted to also run |
|
Code review by qodo was updated up to the latest commit 273f078 |
1 similar comment
|
Code review by qodo was updated up to the latest commit 273f078 |
273f078 to
30f7c37
Compare
|
Rebased onto the latest Local checks:
Note: pushes use |
|
Code review by qodo was updated up to the latest commit 30f7c37 |
1 similar comment
|
Code review by qodo was updated up to the latest commit 30f7c37 |
The Pack step re-serialized the manifest itself — JSON.parse, drop devDependencies/scripts, `JSON.stringify(rest, null, 2)` — which hardcoded two-space indent and would silently reformat any manifest that used something else. Reading and writing through @pnpm/workspace.project-manifest-reader reproduces the file's own formatting instead, and it is the same reader `pnpm pack` reads with. strippedManifest now takes and returns the parsed manifest rather than JSON text; the manifest type is derived from the reader's exported WriteProjectManifest rather than imported from @pnpm/types, so the strip's one obligation — that pnpm's writer still accepts the result — is stated in the type, and no second exact pin is needed. Parsing and formatting concerns move to the reader, so their unit tests go with them; a non-mutation test replaces them, since the caller now holds the manifest object across the pack. check-published-diff deliberately keeps `npm pkg delete`. Two package managers reaching the same packed bytes from congruent commands is a stronger check than either alone, and that check is where the disagreement would surface. Pinned to 1100.0.15, not the 1100.0.19 tip: pnpm's release workflow stopped verifying packed payloads, and 1100.0.16 onward ship only lib/index.js — no readFile.js, no .d.ts — so they fail at import. Same regression as pnpm/pnpm#13164 and #13179, fix open at pnpm/pnpm#13185. Exact-pinned like the other two pnpm SDK entries, and for the same reason. Verified: packing lit-ui-router before and after produces byte-identical tarballs (every packed file, including package.json at sha256 0ae76468...), so no release is owed; check:published-diff returns the same verdicts as before (3 packages, no ship-affecting drift, 3 ship-inert), which is the npm-vs-pnpm differential agreeing; the working tree is restored after pack; check:pack, release tests, typecheck, lint and format all green.
The Pack step re-serialized the manifest itself — JSON.parse, drop devDependencies/scripts, `JSON.stringify(rest, null, 2)` — which hardcoded two-space indent and would silently reformat any manifest that used something else. Reading and writing through @pnpm/workspace.project-manifest-reader reproduces the file's own formatting instead, and it is the same reader `pnpm pack` reads with. strippedManifest now takes and returns the parsed manifest rather than JSON text. Parsing and formatting concerns move to the reader, so their unit tests go with them; a non-mutation test replaces them, since the caller now holds the manifest object across the pack. check-published-diff reuses that same strip instead of shelling out to `npm pkg delete`. Its job is to answer "would a publish ship different bytes", which is only sound if the local side is packed from byte-identical input — sharing the strip guarantees that, where a second implementation could only agree with it until one of them changed. That removes the last `npm pkg` caller; STRIPPED_MANIFEST_FIELDS stays as the packed-manifest gate's statement of intent, and its test now pins both ends so the two can't drift silently. Pinned to 1100.0.15, not the 1100.0.19 tip: pnpm's release workflow stopped verifying packed payloads, and 1100.0.16 onward ship only lib/index.js — no readFile.js, no .d.ts — so they fail at import. Same regression as pnpm/pnpm#13164 and #13179, fix open at pnpm/pnpm#13185. Every @pnpm/* dependency of 1100.0.15 is itself exact-pinned upstream, so that one pin fixes the whole pnpm closure; all six were checked for complete payloads. @pnpm/types is pinned directly too, since release-pack.core.ts now imports ProjectManifest from it rather than deriving the type structurally. Verified: packing lit-ui-router before and after produces byte-identical tarballs (every packed file, including package.json at sha256 0ae76468...), so no release is owed; check:published-diff returns the same verdicts as before (3 packages, no ship-affecting drift, 3 ship-inert); the working tree is restored after pack; check:pack, release tests, typecheck, lint and format all green.
The Pack step re-serialized the manifest itself — JSON.parse, drop devDependencies/scripts, `JSON.stringify(rest, null, 2)` — which hardcoded two-space indent and would silently reformat any manifest that used something else. Reading and writing both go through @pnpm/workspace.project-manifest-reader instead, the same reader `pnpm pack` reads with, so the stripped file keeps the source manifest's own formatting. The restore is the manifest the reader handed back, so the step no longer keeps its own copy of the original bytes to write over the top. strippedManifest now takes and returns the parsed manifest rather than JSON text. Parsing and formatting concerns move to the reader, so their unit tests go with them; a non-mutation test replaces them, since the caller now holds the manifest object across the pack and restores from it. check-published-diff reuses that same strip instead of shelling out to `npm pkg delete`. Its job is to answer "would a publish ship different bytes", which is only sound if the local side is packed from byte-identical input — sharing the strip guarantees that, where a second implementation could only agree with it until one of them changed. That removes the last `npm pkg` caller; STRIPPED_MANIFEST_FIELDS stays as the packed-manifest gate's statement of intent, and its test now pins both ends so the two can't drift silently. Pinned to 1100.0.15, not the 1100.0.19 tip: pnpm's release workflow stopped verifying packed payloads, and 1100.0.16 onward ship only lib/index.js — no readFile.js, no .d.ts — so they fail at import. Same regression as pnpm/pnpm#13164 and #13179, fix open at pnpm/pnpm#13185. Every @pnpm/* dependency of 1100.0.15 is itself exact-pinned upstream, so that one pin fixes the whole pnpm closure; all six were checked for complete payloads. @pnpm/types is pinned directly too, since release-pack.core.ts now imports ProjectManifest from it rather than deriving the type structurally. Verified: packing each publishable package leaves its package.json byte-identical (sha unchanged, clean git status), so the reader round-trip restores exactly what the raw-bytes copy did; packing lit-ui-router still produces a tarball identical to the pre-refactor baseline, every packed file included (package.json at sha256 0ae76468...), so no release is owed; check:published-diff returns the same verdicts as before (3 packages, no ship-affecting drift, 3 ship-inert); check:pack, release tests, typecheck, lint and format all green.
The Pack step re-serialized the manifest itself — JSON.parse, drop devDependencies/scripts, `JSON.stringify(rest, null, 2)` — which hardcoded two-space indent and would silently reformat any manifest that used something else. Reading and writing both go through @pnpm/workspace.project-manifest-reader instead, the same reader `pnpm pack` reads with, so the stripped file keeps the source manifest's own formatting. The restore is the manifest the reader handed back, so the step no longer keeps its own copy of the original bytes to write over the top. strippedManifest now takes and returns the parsed manifest rather than JSON text. Parsing and formatting concerns move to the reader, so their unit tests go with them; a non-mutation test replaces them, since the caller now holds the manifest object across the pack and restores from it. check-published-diff reuses that same strip instead of shelling out to `npm pkg delete`. Its job is to answer "would a publish ship different bytes", which is only sound if the local side is packed from byte-identical input — sharing the strip guarantees that, where a second implementation could only agree with it until one of them changed. That removes the last `npm pkg` caller; STRIPPED_MANIFEST_FIELDS stays as the packed-manifest gate's statement of intent, and its test now pins both ends so the two can't drift silently. Pinned to 1100.0.15, not the 1100.0.19 tip: pnpm's release workflow stopped verifying packed payloads, and 1100.0.16 onward ship only lib/index.js — no readFile.js, no .d.ts — so they fail at import. Same regression as pnpm/pnpm#13164 and #13179, fix open at pnpm/pnpm#13185. Every @pnpm/* dependency of 1100.0.15 is itself exact-pinned upstream, so that one pin fixes the whole pnpm closure; all six were checked for complete payloads. @pnpm/types is pinned directly too, since release-pack.core.ts now imports ProjectManifest from it rather than deriving the type structurally. Verified: packing each publishable package leaves its package.json byte-identical (sha unchanged, clean git status), so the reader round-trip restores exactly what the raw-bytes copy did; packing lit-ui-router still produces a tarball identical to the pre-refactor baseline, every packed file included (package.json at sha256 0ae76468...), so no release is owed; check:published-diff returns the same verdicts as before (3 packages, no ship-affecting drift, 3 ship-inert); check:pack, release tests, typecheck, lint and format all green.
Replace the per-package pack loop with four concurrent pnpm pack --dry-run --json chunks whose reported file lists the verifier checks directly: no tarballs are written or read, no per-package script spawns, and no per-file tar extractions. The compiled payloads are built once with pn compile-only beforehand, since pack does not run prepublishOnly. Publishable projects are selected by explicit name filters because recursive pack, unlike recursive publish, does not skip private packages, and packing the private workspace root would walk the whole repository. Give `@pnpm/modules-mounter.daemon` the lib/index.js entry its manifest (and the meta-updater exports rule) declares: the verifier caught that the file never existed, in the published tarballs as well. Drop the two-package republish changeset, superseded by the all-packages republish changeset from pnpm#13231.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/scripts/verify-packed-package-payload.mjs (1)
118-120: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winExpand positive
filesglobs before comparing.At Line 119, entries containing
*,?, or[are ignored entirely. A package usingfiles: ["lib/**/*.js"]can therefore pass while required non-entrypoint runtime files are omitted. Enumerate matching source paths and add each to the expected set.Based on PR objectives, the verifier must cover manifest-declared
files.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/scripts/verify-packed-package-payload.mjs around lines 118 - 120, Update the manifest.files handling loop in verify-packed-package-payload to expand positive glob entries containing *, ?, or [ into matching source paths and add every match to the expected set. Continue ignoring negated entries, preserve literal-file handling, and ensure all manifest-declared files are included in verification.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In @.github/scripts/verify-packed-package-payload.mjs:
- Around line 118-120: Update the manifest.files handling loop in
verify-packed-package-payload to expand positive glob entries containing *, ?,
or [ into matching source paths and add every match to the expected set.
Continue ignoring negated entries, preserve literal-file handling, and ensure
all manifest-declared files are included in verification.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: d9fd79ed-1e2c-4194-b3b8-d6d359e96b12
📒 Files selected for processing (3)
.changeset/daemon-missing-entry-point.md.github/scripts/verify-packed-package-payload.mjs.github/workflows/release.yml
|
Pushed b0aea76 (maintainer-side rework) — thanks for the verifier and the groundwork, xianjianlf2! The payload-computation logic is yours nearly unchanged; what changed is how it runs, to keep the release job fast, plus composition with what landed in pnpm/pnpm#13231 since this PR was opened:
Full-workspace verification passes locally with the shadow file in place: Written by an agent (Claude Code, claude-fable-5). |
|
Code review by qodo was updated up to the latest commit b0aea76 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…442) * chore(tooling): roll the npm pin forward to 12.0.1 Bumps the single version authority (`"npm:npm"` in .config/mise/config.toml, regenerated mise.lock) off the aged 11 line onto npm 12. The 12 major's headline break — dependency lifecycle scripts gated behind an `allowScripts` allowlist — turned out to be a no-op here: all three examples already carry the allowlist, and `npm approve-scripts --allow-scripts-pending` reports no unreviewed scripts in any of them. `[email protected]` is the only package with `hasInstallScript` across the three lockfiles and it matches its pin exactly; a clean-`node_modules` reinstall under 12 leaves its native binding in place, so the entry is load-bearing and the approval is honored. Drops the `[email protected]` entries: vite 8 dropped esbuild and it appears in none of the three lockfiles, so they allowlisted a package that is not there. Also declares the examples' package manager explicitly via `devEngines`, since they are standalone `npm ci` projects sitting in a pnpm workspace. `devEngines` is npm-native and enforced before install/ci/run; corepack's `packageManager` field does not support npm (nodejs/node#51888), so it would have been inert. No version floor: the mise pin is the one npm authority, and StackBlitz ships its own npm (10.8.2 today), so `onFail: "warn"` keeps that expected drift quiet. Auditing npm 12's `npm pkg` surface turned up stale comments: several described the strip as publish-npm.yml running `npm pkg delete`, but that step became TS (release-pack.core.ts) and the workflow has no `npm pkg` step. The one real remaining caller is check-published-diff, which still strips that way to reproduce the Pack step. Comments corrected to say so; no behavior change. Verified against npm 12.0.1: - all three `npm ci --prefix` legs green, zero warnings, no lockfile churn, standalone, from clean node_modules, and through the workspace postinstall - `npm view <pkg> dist-tags.latest` output byte-identical to npm 11, and E404 still lands in stderr for unpublished packages (resolve-published.ts) - check:published-diff passes — `npm pkg delete`, `pnpm pack` and `npm diff` all intact; the 3 ship-inert package.json drifts are pre-existing - check:pack, release tests, examples lint/typecheck/format all green - root .npmrc is a plain scoped-registry line, safe under 12's throw-on- unknown-config Closes #326 * refactor(release): pack through pnpm's project-manifest reader The Pack step re-serialized the manifest itself — JSON.parse, drop devDependencies/scripts, `JSON.stringify(rest, null, 2)` — which hardcoded two-space indent and would silently reformat any manifest that used something else. Reading and writing both go through @pnpm/workspace.project-manifest-reader instead, the same reader `pnpm pack` reads with, so the stripped file keeps the source manifest's own formatting. The restore is the manifest the reader handed back, so the step no longer keeps its own copy of the original bytes to write over the top. strippedManifest now takes and returns the parsed manifest rather than JSON text. Parsing and formatting concerns move to the reader, so their unit tests go with them; a non-mutation test replaces them, since the caller now holds the manifest object across the pack and restores from it. check-published-diff reuses that same strip instead of shelling out to `npm pkg delete`. Its job is to answer "would a publish ship different bytes", which is only sound if the local side is packed from byte-identical input — sharing the strip guarantees that, where a second implementation could only agree with it until one of them changed. That removes the last `npm pkg` caller; STRIPPED_MANIFEST_FIELDS stays as the packed-manifest gate's statement of intent, and its test now pins both ends so the two can't drift silently. Pinned to 1100.0.15, not the 1100.0.19 tip: pnpm's release workflow stopped verifying packed payloads, and 1100.0.16 onward ship only lib/index.js — no readFile.js, no .d.ts — so they fail at import. Same regression as pnpm/pnpm#13164 and #13179, fix open at pnpm/pnpm#13185. Every @pnpm/* dependency of 1100.0.15 is itself exact-pinned upstream, so that one pin fixes the whole pnpm closure; all six were checked for complete payloads. @pnpm/types is pinned directly too, since release-pack.core.ts now imports ProjectManifest from it rather than deriving the type structurally. Verified: packing each publishable package leaves its package.json byte-identical (sha unchanged, clean git status), so the reader round-trip restores exactly what the raw-bytes copy did; packing lit-ui-router still produces a tarball identical to the pre-refactor baseline, every packed file included (package.json at sha256 0ae76468...), so no release is owed; check:published-diff returns the same verdicts as before (3 packages, no ship-affecting drift, 3 ship-inert); check:pack, release tests, typecheck, lint and format all green. * refactor(release): resolve dist-tags through pacote, not `npm view` resolve-published.ts shelled out to `npm view <pkg> dist-tags.latest` and decided "never published" by matching E404 in the child's stderr. pacote is already this package's registry client (tarball.ts fetches published tarballs with it), reads the same packument, and rejects with npm's own error code — so the unpublished case is a code comparison rather than a string search, and one subprocess per package goes away. The failure semantics matter here and are unchanged: only E404 resolves to null. Network, 5xx and auth errors still throw, because a swallowed one would record the package as unpublished and silently suppress its drift check. Verified: resolves the same three dist-tags as the `npm view` implementation ([email protected], [email protected], [email protected]), and check:published-diff still passes with the same verdicts. * refactor(release): make the strip and its gate share one field list STRIPPED_MANIFEST_FIELDS lived in check-pack.core.ts while strippedManifest named the same two fields in a destructure, so the guard and the thing it guards were two independent statements of the same list. The test standing between them only asserted that a constant equalled its own literal — it caught edits to that line, not drift between the two. The list moves next to the strip in release-pack.core.ts, the strip iterates it, and the packed-manifest gate imports it. One list with two readers: drift is now unrepresentable rather than tested for, so the change-detector test is deleted rather than relocated. strippedManifest's behavioural tests (drops exactly these fields, preserves key order, no-op when absent, does not mutate its input) still cover the semantics, and now exercise the copy-and-delete implementation. Verified: lit-ui-router packs to a tarball identical to the pre-refactor baseline and its package.json restores byte-exact; check:pack and check:published-diff both pass unchanged. * docs(release): trim the pack-refactor comments to what the code needs The comments added across this PR were carrying rationale that belongs in the history instead of the source. Moved here, removed there: - release-pack.core.ts named `@pnpm/read-project-manifest` in its header. Wrong package — we read through `@pnpm/workspace.project-manifest-reader` (the 1100 workspace line); the old standalone reader is not a dependency. - `strippedManifest` takes and returns a parsed manifest rather than JSON text so the caller can write it back through pnpm's project-manifest writer, which reproduces the file's own indentation instead of imposing the function's. It copies rather than mutates because release-pack holds the same object across the pack and restores from it. Both properties are covered by unit tests; the signature and "a copy of" say the rest. - release-pack.ts's try/finally replaces the workflow's `git checkout -- package.json`, byte-equivalent on CI's clean checkout and additionally correct when the pack itself fails. - resolve-published.ts reads the registry through pacote rather than shelling out to `npm view`: one less subprocess, and an unpublished package arrives as an E404 code instead of a string to match in stderr. - `npm pkg delete` no longer exists anywhere in the release tooling, so the three comments still explaining the strip in its terms were describing a command the reader cannot find. No behaviour change: 23 tasks green, 142 release tests pass. * refactor(release): constrain STRIPPED_MANIFEST_FIELDS to ProjectManifest keys `as const satisfies readonly (keyof ProjectManifest)[]` — the list is what both the strip and the packed-manifest gate iterate, so a typo silently stripped nothing and silently guarded nothing. Now it fails at the declaration: TS2820, with the "did you mean 'scripts'?" suggestion. `satisfies` rather than an annotation so the inferred type stays the literal tuple `readonly ['devDependencies', 'scripts']` — check-pack.core.ts indexes PackageManifest with it, which needs the literals, not `keyof`. Considered and rejected: narrowing further to only the *optional* keys, to confirm each field is actually strippable. Vacuous here — every field on ProjectManifest (and its BaseManifest parent) is declared optional, `name?` and `version?` included, so `Exclude<keyof T, OptionalKeys<T>>` is `never` and the refinement admits exactly the same set as `keyof`. The `delete` in strippedManifest would enforce optionality independently anyway. * docs(release): drop the bash-glob backstory from pickTarball
) pnpm peers check reported @pnpm/logger unmet on every install: installed 1001.0.1, wanted ^1100.0.0 by @pnpm/core-loggers, @pnpm/cli.utils, @pnpm/pkg-manifest.utils, @pnpm/config.package-is-installable and both workspace readers. No package depends on the logger directly — all six declare it as a peer, so it was auto-installed. The stale resolution dates to #440: before it the SDKs peered on ^1001.0.1 and 1001.0.1 satisfied that; #440 moved them to the 1100 line with peer ^1100.0.0, but the already-locked auto-peer never re-resolved. Declaring it explicitly in the two packages that consume the SDKs pins it, the same way catalogued @types/node keeps pnpm from auto-peering something unintended. Pinned exact at 1100.0.0, matching the other @pnpm/* SDK entries. Its tarball ships the complete lib/ (not the truncated shape of the pnpm/pnpm#13185 broken publishes) and declares the same exports and dependencies as 1001.0.1, adding only engines >=22.13, which this repo clears. Nothing was observably broken: both readProjectManifest and findPackages worked before and after. This clears the warning and removes the latent mismatch.
…t, rolldown, pnpm SDK) (#519) Ship-inert dev-tooling slice carved out of Dependabot #513. - @types/lodash ^4.17.24 -> ^4.17.25 - eslint-plugin-turbo ^2.10.7 -> ^2.10.8 - turbo ^2.10.7 -> ^2.10.8 (moves with eslint-plugin-turbo, which peers on it) - playwright ^1.62.0 -> ^1.62.1 - release-it ^21.0.0 -> ^21.0.1 - rolldown ^1.2.0 -> ^1.2.2 - start-server-and-test ^3.0.11 -> ^3.0.12 - vue-tsc ^3.3.8 -> ^3.3.9 - @pnpm/types 1101.6.0 -> 1101.8.0 - @pnpm/workspace.project-manifest-reader 1100.0.20 -> 1100.0.22 - @pnpm/workspace.projects-reader 1101.0.19 -> 1101.0.21 - @pnpm/workspace.workspace-manifest-reader 1100.1.2 -> 1100.1.4 The pnpm SDK quartet stays exact-pinned by design. All four tarballs were checked against pnpm/pnpm#13185 (truncated publishes): file lists are byte-for-byte identical to the currently pinned versions and the closure imports cleanly in node. `pnpm peers check` reports no peer dependency issues.
@pnpm/types 1101.8.0 -> 1101.9.0, @pnpm/workspace.project-manifest-reader 1100.0.22 -> 1100.0.23, @pnpm/workspace.projects-reader 1101.0.21 -> 1101.0.22, @pnpm/workspace.workspace-manifest-reader 1100.1.4 -> 1100.1.5. All four candidate tarballs were downloaded and listed before adopting: each ships its full lib/ tree with .d.ts, not the index-only truncation of pnpm/pnpm#13185. `pnpm peers check` re-run after the bump — auto-peers do not re-resolve on their own when an SDK line moves.
@pnpm/types 1101.8.0 -> 1101.9.0, @pnpm/workspace.project-manifest-reader 1100.0.22 -> 1100.0.23, @pnpm/workspace.projects-reader 1101.0.21 -> 1101.0.22, @pnpm/workspace.workspace-manifest-reader 1100.1.4 -> 1100.1.5. All four candidate tarballs were downloaded and listed before adopting: each ships its full lib/ tree with .d.ts, not the index-only truncation of pnpm/pnpm#13185. `pnpm peers check` re-run after the bump — auto-peers do not re-resolve on their own when an SDK line moves.
Summary
.github/scripts/verify-packed-package-payload.mjs) that checks packed packages contain the manifest-declared files (files,main,module,types,exports,browser,bin, andpublishConfig.executableFiles)pn compile-only, then four concurrentpnpm pack --dry-run --jsonchunks over all publishable workspace projects, then a single verifier pass over the reported file lists — no tarballs are written or read, and the file lists come from the exact packing code the publish steps use@pnpm/modules-mounter.daemonthelib/index.jsentry point its manifest declares — the verifier caught that the file never existed, in the published tarballs as well (itsexportsis stamped by the meta-updater convention, but the package had nosrc/index.ts)Related to pnpm/pnpm#13164 (root cause fixed in pnpm/pnpm#13231). Fixes pnpm/pnpm#13179.
Verification
Run locally against the pinned pacquet (12.0.0-alpha.18, which still carries the packing bug):
.npmignore: the verifier fails on the first lib package with the exact incident signature (all oflib/missing except the force-includedmain) — proving it would have blocked the broken releases.npmignorein place (as in the release job):Verified payloads of 193 packages@pnpm/[email protected]tarball, listing the missinglib/filespn compile-only(mostly warm after the build-artifacts step)Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting. (Release-workflow-only change; no CLI behavior involved.)pnpm changeset) if this PR changes any publishedpackage. (For the
@pnpm/modules-mounter.daemonentry-point fix; the workflow/script changes touch no published package.)