Repository navigation
fix(verify-pack): read the npm 12 pack --json output - #7133
Merged
trentm merged 2 commits intoSep 29, 2026
Merged
Conversation
Pull request dashboard statusMerged · refreshed 2026-09-29 00:24 UTC Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7133 +/- ##
=======================================
Coverage 95.04% 95.04%
=======================================
Files 383 383
Lines 13455 13455
Branches 3094 3094
=======================================
Hits 12788 12788
Misses 667 667 🚀 New features to boost your workflow:
|
trentm
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run verify-packfails for every package on npm 12 withCannot read properties of undefined (reading 'filename').npm pack --jsonchanged shape in npm 12. npm 11 returns an array of results. npm 12 returns an object keyed by package name:The script now accepts both shapes. CI uses npm 11 and is not affected. The failure shows up locally for contributors on npm 12, which the
devEnginesfloor (>=11.10.0) allows.How Has This Been Tested?
npm pack --dry-run --jsonon npm 12.1.0 andnpx npm@11.npm run verify-packon npm 12.1.0: all 38 packages resolve.