Repository navigation
fix(pacquet): repair licenses command - #13347
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe licenses command now accepts ChangesLicenses global virtual-store support
Estimated code review effort: 3 (Moderate) | ~20 minutes Assessment against linked issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 QodoFix pacquet
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
|
@coderabbitai review Written by an agent (Codex, GPT-5). |
|
✅ Action performedReview finished.
|
Confidence Score: 5/5The PR appears safe to merge. The previously reported runtime-precedence issue is addressed by selecting a lockfile runtime first, then the configured or manifest-selected runtime, before falling back to the host, and the global-store integration test confirms that licenses resolves the installed package path. Reviews (2): Last reviewed commit: "fix(pacquet): align licenses runtime loo..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@pnpm/crates/cli/src/cli_args/licenses.rs`:
- Around line 255-256: Update the is_unsafe calculation in the license
package-path handling to inspect Path components rather than rejecting any name
containing "..". Mark names unsafe when their components include ParentDir, a
root, or a platform-prefix component, while allowing safe names such as
"foo..bar"; preserve the existing unsafe-path handling and manifest behavior.
🪄 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: 3d19320b-0457-44be-8106-e757178bc238
📒 Files selected for processing (5)
.changeset/pacquet-licenses-global-store.mdpnpm/crates/cli/src/cli_args/licenses.rspnpm/crates/cli/src/cli_args/licenses/tests.rspnpm/crates/cli/tests/licenses.rspnpm/crates/package-manager/src/virtual_store_layout.rs
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13347 +/- ##
==========================================
+ Coverage 87.03% 87.21% +0.18%
==========================================
Files 533 536 +3
Lines 91682 92034 +352
==========================================
+ Hits 79791 80265 +474
+ Misses 11891 11769 -122 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time). Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5037570795999997,
"stddev": 0.16175066746909236,
"median": 2.4345607676,
"user": 1.5519293600000001,
"system": 1.3613769999999998,
"min": 2.3630024856,
"max": 2.7838076506,
"times": [
2.4625167196,
2.3824667105999997,
2.3630024856,
2.4582517336,
2.7838076506,
2.7425805236,
2.4108698016,
2.3872209306,
2.6625804376,
2.3842738025999997
]
},
{
"command": "pacquet@main",
"mean": 2.5171662636999996,
"stddev": 0.16218411909410962,
"median": 2.4457087136,
"user": 1.57250306,
"system": 1.2928121999999997,
"min": 2.3580382155999997,
"max": 2.7546503176,
"times": [
2.4178369176,
2.3984496076,
2.7299841315999998,
2.4735805096,
2.7470441316,
2.7546503176,
2.4178053185999997,
2.5016959366,
2.3580382155999997,
2.3725775506
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5158834560000003,
"stddev": 0.16550243116366348,
"median": 1.5161559316000002,
"user": 1.05003526,
"system": 1.1555191,
"min": 1.3362075486,
"max": 1.7971536496,
"times": [
1.3617875856000001,
1.3362075486,
1.4617542716,
1.5864838286000003,
1.7241073016000001,
1.3497969366,
1.5705575916,
1.6031468406000002,
1.3678390056,
1.7971536496
]
},
{
"command": "pnpr@main",
"mean": 1.5461035089,
"stddev": 0.15099943077624525,
"median": 1.5715728461,
"user": 1.07103906,
"system": 1.1524743,
"min": 1.3594475816000002,
"max": 1.7502515656000002,
"times": [
1.3594475816000002,
1.6536418116000002,
1.4992796576,
1.3693206566,
1.6536683736000002,
1.6438660346,
1.7055419126,
1.3838136706000002,
1.4422038246000002,
1.7502515656000002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26026655150000005,
"stddev": 0.012591531771898722,
"median": 0.262486602,
"user": 0.2119745,
"system": 0.5181512799999999,
"min": 0.23749512500000003,
"max": 0.276759091,
"times": [
0.24532982500000003,
0.23749512500000003,
0.254312111,
0.25355894,
0.26558133700000003,
0.271270162,
0.272016148,
0.259391867,
0.266950909,
0.276759091
]
},
{
"command": "pacquet@main",
"mean": 0.2651988916,
"stddev": 0.005901563355394447,
"median": 0.26569984,
"user": 0.22014539999999996,
"system": 0.54485468,
"min": 0.255922216,
"max": 0.273182588,
"times": [
0.269044095,
0.265882615,
0.27048943,
0.259554574,
0.264735542,
0.257330501,
0.265517065,
0.273182588,
0.255922216,
0.27033029000000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.2769636457,
"stddev": 0.007541745451962469,
"median": 0.27537072250000005,
"user": 0.21951189999999995,
"system": 0.54797128,
"min": 0.26886645,
"max": 0.296132637,
"times": [
0.280839143,
0.26886645,
0.274521031,
0.274246572,
0.276220414,
0.274480784,
0.276685962,
0.27728445,
0.296132637,
0.270359014
]
},
{
"command": "pnpr@main",
"mean": 0.27083982149999997,
"stddev": 0.007640067878263735,
"median": 0.27225239349999997,
"user": 0.20856840000000001,
"system": 0.53466558,
"min": 0.257933077,
"max": 0.280770833,
"times": [
0.266419226,
0.261960089,
0.257933077,
0.265183707,
0.280770833,
0.273077639,
0.271427148,
0.276452042,
0.276628325,
0.278546129
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.7886523965200003,
"stddev": 0.02052404101239454,
"median": 2.78782925742,
"user": 1.7278105599999996,
"system": 1.34279482,
"min": 2.76364497242,
"max": 2.81910421042,
"times": [
2.79665107742,
2.76364497242,
2.77900743742,
2.80700043742,
2.8064007484199998,
2.81910421042,
2.80632363342,
2.76653057042,
2.77092853542,
2.77093234242
]
},
{
"command": "pacquet@main",
"mean": 2.7912848529199996,
"stddev": 0.026218887225117747,
"median": 2.7888470969199997,
"user": 1.6971424599999998,
"system": 1.35501072,
"min": 2.7507650674199997,
"max": 2.83495775142,
"times": [
2.80632332342,
2.77639485142,
2.78603533042,
2.81624112442,
2.75689890742,
2.7507650674199997,
2.80896002442,
2.78461328542,
2.79165886342,
2.83495775142
]
},
{
"command": "pnpr@HEAD",
"mean": 1.54669155202,
"stddev": 0.14980336009525877,
"median": 1.49648102392,
"user": 1.05045006,
"system": 1.1152960200000002,
"min": 1.41854585342,
"max": 1.80933038142,
"times": [
1.80869275142,
1.52664743942,
1.47003558842,
1.60582839342,
1.44262160242,
1.5229264594199998,
1.41854585342,
1.42608285142,
1.80933038142,
1.4362041994199999
]
},
{
"command": "pnpr@main",
"mean": 1.5683164347199998,
"stddev": 0.11037263746112037,
"median": 1.56782319292,
"user": 1.0550811599999999,
"system": 1.16572232,
"min": 1.42693870142,
"max": 1.74051492442,
"times": [
1.55011215742,
1.43345707342,
1.45642223242,
1.42693870142,
1.67958402142,
1.5855342284199998,
1.74051492442,
1.5210948634199999,
1.61034080142,
1.6791653434199998
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5965206474200001,
"stddev": 0.00946838986488232,
"median": 0.59466033642,
"user": 0.7464535399999999,
"system": 0.6593705199999998,
"min": 0.58072555292,
"max": 0.6111324909200001,
"times": [
0.59406051792,
0.5952601549200001,
0.58072555292,
0.6111324909200001,
0.58794197792,
0.60360910992,
0.5898567509200001,
0.60466074692,
0.59228554992,
0.6056736219200001
]
},
{
"command": "pacquet@main",
"mean": 0.5932258206200001,
"stddev": 0.006910657722285607,
"median": 0.5953532539200002,
"user": 0.7179494399999999,
"system": 0.6937750199999999,
"min": 0.58072034392,
"max": 0.60208711692,
"times": [
0.5972478629200001,
0.58072034392,
0.58435376892,
0.5967998309200001,
0.5904797219200001,
0.5955191109200001,
0.5892405409200001,
0.5951873969200001,
0.60062251192,
0.60208711692
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30700184012000004,
"stddev": 0.006943634433493469,
"median": 0.30805582742000004,
"user": 0.20040863999999997,
"system": 0.52719272,
"min": 0.29689777892,
"max": 0.31732432292000007,
"times": [
0.30718121192000003,
0.31196019192,
0.31732432292000007,
0.30893044292000005,
0.30600202492000006,
0.31101480392,
0.29689777892,
0.29933431192000004,
0.29801886692000007,
0.31335444492000003
]
},
{
"command": "pnpr@main",
"mean": 0.30520573752,
"stddev": 0.008021216077654714,
"median": 0.30402838142000005,
"user": 0.20951364,
"system": 0.5349475199999999,
"min": 0.29083055592000007,
"max": 0.31639979392000006,
"times": [
0.29083055592000007,
0.29780603692,
0.30136174592000003,
0.30187448992000004,
0.31446008492000005,
0.30246389892000003,
0.30559286392000007,
0.30796600892000003,
0.31639979392000006,
0.31330189592
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9283157685399999,
"stddev": 0.0064959067192377085,
"median": 1.92676279954,
"user": 0.95552324,
"system": 0.7775576199999998,
"min": 1.9203658860400001,
"max": 1.93792154004,
"times": [
1.93152888504,
1.93792154004,
1.93295076904,
1.92328405504,
1.9203658860400001,
1.9377742930400002,
1.92300802604,
1.92409107404,
1.92943452504,
1.92279863204
]
},
{
"command": "pacquet@main",
"mean": 1.9215866898400003,
"stddev": 0.009346817120361502,
"median": 1.92412601704,
"user": 0.9757363400000001,
"system": 0.74124382,
"min": 1.91002653504,
"max": 1.93935196004,
"times": [
1.92344491004,
1.93935196004,
1.92545673704,
1.92736118104,
1.91002653504,
1.9148882150400002,
1.92720908504,
1.91084132804,
1.9124798230400002,
1.9248071240400002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.31027923334,
"stddev": 0.007435488764577033,
"median": 0.31176884004000005,
"user": 0.20825613999999998,
"system": 0.5394967199999999,
"min": 0.29481991404,
"max": 0.32047513204,
"times": [
0.31236216204,
0.32047513204,
0.30671975104,
0.29481991404,
0.30502946004,
0.31368963104,
0.31933558704,
0.31189386004,
0.30682301604,
0.31164382004
]
},
{
"command": "pnpr@main",
"mean": 0.30965476774,
"stddev": 0.0064796584691185835,
"median": 0.30783721504,
"user": 0.20106014,
"system": 0.5500752200000001,
"min": 0.30237106604,
"max": 0.32021363904,
"times": [
0.30588862704,
0.31709672404,
0.30978580304,
0.31732989104,
0.32021363904,
0.30405909404,
0.30532333304,
0.30237106604,
0.30384100304,
0.31063849704
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.3502825532,
"stddev": 0.006856184747088219,
"median": 0.3491661394,
"user": 0.33723143999999994,
"system": 0.059706440000000006,
"min": 0.3390478149,
"max": 0.3654694439,
"times": [
0.35113494390000005,
0.3390478149,
0.35551665190000004,
0.3463533449,
0.3654694439,
0.34630496390000004,
0.3493365599,
0.34899571890000003,
0.3488725259,
0.35179356390000005
]
},
{
"command": "pacquet@main",
"mean": 0.3572142817,
"stddev": 0.010137804831932013,
"median": 0.3559406894,
"user": 0.34738894,
"system": 0.057106939999999995,
"min": 0.3423328379,
"max": 0.3732825999,
"times": [
0.3423328379,
0.36593795590000006,
0.3668888659,
0.35368075590000003,
0.3641669329,
0.3732825999,
0.3479510509,
0.3554670379,
0.3564143409,
0.3460204389
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08600071601764707,
"stddev": 0.0021137702249662783,
"median": 0.08619738390000001,
"user": 0.019700604705882353,
"system": 0.009306494705882353,
"min": 0.0817203929,
"max": 0.0893922939,
"times": [
0.0839741949,
0.0886476199,
0.0883504709,
0.0875354579,
0.0887041769,
0.0848649319,
0.0859214599,
0.0837505939,
0.0870014219,
0.0824239179,
0.0840215139,
0.0854259679,
0.0836495029,
0.0864341149,
0.0886965729,
0.0855863499,
0.0817203929,
0.0840281469,
0.0893922939,
0.0847177239,
0.0848002399,
0.0875902099,
0.0881969929,
0.0862948119,
0.0853634499,
0.0829689729,
0.0880124449,
0.0861361539,
0.0870726159,
0.0825103589,
0.0874781799,
0.0883271469,
0.0881673269,
0.0862586139
]
},
{
"command": "pnpr@main",
"mean": 0.08612818883939391,
"stddev": 0.002126729077025047,
"median": 0.0864875549,
"user": 0.019236264242424243,
"system": 0.009979779999999999,
"min": 0.0823686719,
"max": 0.0902530629,
"times": [
0.0853958909,
0.0900738649,
0.0872234509,
0.0874463299,
0.0851945709,
0.0898616159,
0.0855364549,
0.0866389499,
0.0865995859,
0.0829323939,
0.0883068199,
0.0860508429,
0.0841637319,
0.0871515549,
0.0864875549,
0.0867996129,
0.0834041619,
0.0863090889,
0.0824572799,
0.0871083829,
0.0833687459,
0.0861387689,
0.0823686719,
0.0838554719,
0.0867135399,
0.0902530629,
0.0853951589,
0.0885674699,
0.0844055169,
0.0833424749,
0.0876082849,
0.0877240229,
0.0873469029
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.579886713740001,
"stddev": 0.12044617969488146,
"median": 4.59795060324,
"user": 1.7465573399999996,
"system": 1.39787204,
"min": 4.4323981872400005,
"max": 4.79254090424,
"times": [
4.46066382724,
4.79254090424,
4.4323981872400005,
4.43698875724,
4.61067710624,
4.52085822424,
4.59273321324,
4.61990063724,
4.6031679932400005,
4.72893828724
]
},
{
"command": "pacquet@main",
"mean": 4.57618700004,
"stddev": 0.1482301575770507,
"median": 4.50222434674,
"user": 1.7336400399999998,
"system": 1.4172434399999998,
"min": 4.4552810242400005,
"max": 4.82781346124,
"times": [
4.50780733024,
4.82781346124,
4.46982623424,
4.75326189024,
4.47068103124,
4.77680319624,
4.54501549324,
4.4552810242400005,
4.49664136324,
4.45873897624
]
},
{
"command": "pnpr@HEAD",
"mean": 3.5455885901400004,
"stddev": 0.1258498715596225,
"median": 3.49920172724,
"user": 1.1606484399999997,
"system": 1.2446861399999996,
"min": 3.45477212524,
"max": 3.85756749524,
"times": [
3.49397457824,
3.4702082402400003,
3.56824320524,
3.45477212524,
3.50442887624,
3.52565808224,
3.85756749524,
3.4552094872400003,
3.47005210524,
3.6557717062400004
]
},
{
"command": "pnpr@main",
"mean": 3.52432794014,
"stddev": 0.09606019086294845,
"median": 3.47991131624,
"user": 1.19072834,
"system": 1.2190098399999996,
"min": 3.4379658282400003,
"max": 3.73004106024,
"times": [
3.55183980224,
3.56245132524,
3.63604583624,
3.47119427424,
3.73004106024,
3.45278626924,
3.4621578952400003,
3.4379658282400003,
3.45016875224,
3.48862835824
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13347 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,418.55 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 294.82 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 296.90 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 81.72 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,336.21 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,454.77 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 268.87 ms |
|
Code review by qodo was updated up to the latest commit 487d7bf |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…check` pnpm 12 rejected `pnpm peers check` — the spelling pnpm.io documents and pnpm's own dedupe output recommends — as an unexpected argument, and its `dedupe --check` failed with a bare "Lockfile would be modified by deduplication": no diff, no error code, no peer-dependency warning. `peers` now takes an optional subcommand: `check` (or nothing) runs the check, anything else prints the command's help and exits 1, mirroring the TypeScript handler. `dedupe --check` now renders what deduplication would rewrite, under pnpm's `ERR_PNPM_DEDUPE_CHECK_ISSUES`. The report reuses the lockfile diff behind `install --dry-run`, which grew per-alias detail for updated `snapshots:` entries and a key selector: `--dry-run` keeps comparing importers by manifest specifier, while `--check` compares them by resolved version, because deduplication rewrites peer-resolved versions without touching specifiers. Rendering goes through the archy tree renderer `list` and `why` already share, so the output matches pnpm's `renderDedupeCheckIssues`. A snapshot that no longer parses (an older lockfile format the run has just rewritten) degrades to no baseline rather than replacing the verdict with a parse error, and a text-only rewrite — drifted settings, a config dependency the run synced — says so instead of printing an empty report. Dedupe also emits pnpm's `Issues with peer dependencies found. Run "pnpm peers check" to list them.` warning. It is derived from the deduplicated lockfile through the same checker and `peerDependencyRules` filtering the `peers` command uses, so the warning and the command it recommends always agree, and it is gated like pnpm's install-time one: a bad peer, or a missing peer at least one parent requires non-optionally. `pnpm install` still does not warn — unlike dedupe it can finish without resolving, so that warning has to come from the resolver rather than a lockfile walk. The `licenses list` half of the issue was already fixed on main by #13347. TypeScript CLI: no counterpart change — pnpm 11 already behaves this way. Closes #13321
…check` (#13395) pnpm 12 rejected `pnpm peers check` — the spelling pnpm.io documents and pnpm's own dedupe output recommends — as an unexpected argument, and its `dedupe --check` failed with a bare "Lockfile would be modified by deduplication": no diff, no error code, no peer-dependency warning. `peers` now takes an optional subcommand: `check` (or nothing) runs the check, anything else prints the command's help and exits 1, mirroring the TypeScript handler. `dedupe --check` now renders what deduplication would rewrite, under pnpm's `ERR_PNPM_DEDUPE_CHECK_ISSUES`. The report reuses the lockfile diff behind `install --dry-run`, which grew per-alias detail for updated `snapshots:` entries and a key selector: `--dry-run` keeps comparing importers by manifest specifier, while `--check` compares them by resolved version, because deduplication rewrites peer-resolved versions without touching specifiers. Rendering goes through the archy tree renderer `list` and `why` already share, so the output matches pnpm's `renderDedupeCheckIssues`. A snapshot that no longer parses (an older lockfile format the run has just rewritten) degrades to no baseline rather than replacing the verdict with a parse error, and a text-only rewrite — drifted settings, a config dependency the run synced — says so instead of printing an empty report. Dedupe also emits pnpm's `Issues with peer dependencies found. Run "pnpm peers check" to list them.` warning. It is derived from the deduplicated lockfile through the same checker and `peerDependencyRules` filtering the `peers` command uses, so the warning and the command it recommends always agree, and it is gated like pnpm's install-time one: a bad peer, or a missing peer at least one parent requires non-optionally. `pnpm install` still does not warn — unlike dedupe it can finish without resolving, so that warning has to come from the resolver rather than a lockfile walk. The `licenses list` half of the issue was already fixed on main by #13347. TypeScript CLI: no counterpart change — pnpm 11 already behaves this way. Closes #13321
Pacquet parsed license options directly after `pnpm licenses`, so the documented `list` and `ls` subcommands were rejected. Accept those subcommands and report the same missing/unknown-subcommand error codes as the TypeScript CLI. License discovery also reconstructed the legacy flat virtual-store path. Route it through the shared virtual-store layout instead, preserving lockfile pins and the effective project-selected Node runtime before falling back to the host, and validate package-name components plus slot containment before reading package manifests. This allows license metadata and reported paths to resolve correctly from hashed global virtual-store slots. Fixes pnpm#13332. Fixes pnpm#13333.
…check` (pnpm#13395) pnpm 12 rejected `pnpm peers check` — the spelling pnpm.io documents and pnpm's own dedupe output recommends — as an unexpected argument, and its `dedupe --check` failed with a bare "Lockfile would be modified by deduplication": no diff, no error code, no peer-dependency warning. `peers` now takes an optional subcommand: `check` (or nothing) runs the check, anything else prints the command's help and exits 1, mirroring the TypeScript handler. `dedupe --check` now renders what deduplication would rewrite, under pnpm's `ERR_PNPM_DEDUPE_CHECK_ISSUES`. The report reuses the lockfile diff behind `install --dry-run`, which grew per-alias detail for updated `snapshots:` entries and a key selector: `--dry-run` keeps comparing importers by manifest specifier, while `--check` compares them by resolved version, because deduplication rewrites peer-resolved versions without touching specifiers. Rendering goes through the archy tree renderer `list` and `why` already share, so the output matches pnpm's `renderDedupeCheckIssues`. A snapshot that no longer parses (an older lockfile format the run has just rewritten) degrades to no baseline rather than replacing the verdict with a parse error, and a text-only rewrite — drifted settings, a config dependency the run synced — says so instead of printing an empty report. Dedupe also emits pnpm's `Issues with peer dependencies found. Run "pnpm peers check" to list them.` warning. It is derived from the deduplicated lockfile through the same checker and `peerDependencyRules` filtering the `peers` command uses, so the warning and the command it recommends always agree, and it is gated like pnpm's install-time one: a bad peer, or a missing peer at least one parent requires non-optionally. `pnpm install` still does not warn — unlike dedupe it can finish without resolving, so that warning has to come from the resolver rather than a lockfile walk. The `licenses list` half of the issue was already fixed on main by pnpm#13347. TypeScript CLI: no counterpart change — pnpm 11 already behaves this way. Closes pnpm#13321
Summary
pnpm licenses listandpnpm licenses lssubcommands in pacquet, matching the TypeScript CLIFixes #13332.
Fixes #13333.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
licenses listandlicenses lsparsing and license metadata discovery when using the global virtual store.licensescommand has no or an unsupported subcommand.Tests