Repository navigation
fix(cli): match pnpm's JSON error output for publish --json failures - #13029
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
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 (7)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthrough
ChangesPublish JSON output
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant CliArgsRun
participant PublishDispatch
participant SilentReporter
participant JsonErrorEnvelope
CliArgsRun->>PublishDispatch: route publish command
PublishDispatch->>SilentReporter: run JSON publish flow
PublishDispatch-->>CliArgsRun: return publish error
CliArgsRun->>JsonErrorEnvelope: serialize error details
JsonErrorEnvelope-->>CliArgsRun: write envelope to stdout
✨ Finishing Touches🧪 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 |
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 @.changeset/pacquet-publish-json-errors.md:
- Around line 1-5: Combine the publish JSON contract changes into
.changeset/pacquet-publish-json-errors.md by retaining its entry and adding that
the human diagnostic is suppressed for this path; remove the duplicate entry
from .changeset/pacquet-publish-json-reporter.md.
In `@pnpm/crates/cli/src/cli_args/dispatch.rs`:
- Around line 422-434: Update json_error_message to return only the canonical
pnpm diagnostic message instead of joining the complete error chain, while
preserving the existing special handling for “pack the package” and explicitly
whitelisting any intended supplemental fields. Add a regression test with a
sensitive nested cause and verify the JSON error envelope omits that cause and
any secret data.
- Around line 416-419: Update the JSON output serialization in the dispatch path
to use serde_json::to_string instead of serde_json::to_string_pretty, preserving
compact machine-readable stdout and pnpm output parity. Keep the existing
serialization assertion behavior and println! flow unchanged.
🪄 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: c513f0fd-af11-4c36-b00e-697381f8609a
📒 Files selected for processing (5)
.changeset/pacquet-publish-json-errors.md.changeset/pacquet-publish-json-reporter.mdpnpm/crates/cli/src/cli_args/dispatch.rspnpm/crates/cli/src/cli_args/dispatch_query.rspnpm/crates/cli/tests/publish.rs
Confidence Score: 5/5Safe to merge. The change is well-scoped to the publish JSON error path and does not affect non-JSON invocations. The config and state closures are lazy (only called inside the future), so all publish errors — including config-load failures — fall through the new No files require special attention. Reviews (4): Last reviewed commit: "fix(cli): keep publish --json error enve..." | Re-trigger Greptile |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13029 +/- ##
=======================================
Coverage 85.53% 85.54%
=======================================
Files 498 498
Lines 79541 79595 +54
=======================================
+ Hits 68037 68087 +50
- Misses 11504 11508 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.6242684952199995,
"stddev": 0.09761149277419168,
"median": 2.62998716412,
"user": 1.9047067599999998,
"system": 1.5456233000000001,
"min": 2.47197731162,
"max": 2.78484793962,
"times": [
2.78484793962,
2.69356744362,
2.5694885096199997,
2.72735857662,
2.53629970562,
2.5335464066199997,
2.64728114162,
2.61269318662,
2.66562473062,
2.47197731162
]
},
{
"command": "pacquet@main",
"mean": 2.77394995992,
"stddev": 0.18371075056807593,
"median": 2.78873903662,
"user": 2.20261576,
"system": 1.7797177000000002,
"min": 2.49030338762,
"max": 3.00988498362,
"times": [
2.97062453462,
2.87534398962,
2.60440474462,
2.70213408362,
2.57524230462,
2.87610542662,
3.00988498362,
2.49030338762,
2.94224270962,
2.69321343462
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5770756491199998,
"stddev": 0.15615976702439557,
"median": 1.62760269712,
"user": 1.1362062600000002,
"system": 1.2597203000000001,
"min": 1.34329839662,
"max": 1.79811694362,
"times": [
1.6603829616199999,
1.34329839662,
1.69478095962,
1.79811694362,
1.37968898662,
1.61347147162,
1.39573382662,
1.53864968462,
1.7048993376200001,
1.6417339226199998
]
},
{
"command": "pnpr@main",
"mean": 1.4918564027199999,
"stddev": 0.12552058824200696,
"median": 1.47234621962,
"user": 1.17910566,
"system": 1.2478563999999999,
"min": 1.35891267262,
"max": 1.69734668462,
"times": [
1.3724530826199999,
1.37568141962,
1.4050720616199999,
1.57637684062,
1.57347329762,
1.53962037762,
1.35891267262,
1.38758079062,
1.6320467996199999,
1.69734668462
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.29282566676000005,
"stddev": 0.0602333788196659,
"median": 0.26609061236,
"user": 0.28141126,
"system": 0.74152194,
"min": 0.21887119386,
"max": 0.38784084286000003,
"times": [
0.21887119386,
0.24971043086,
0.26288787686000004,
0.27304674086,
0.26607485386,
0.35691844786000004,
0.38784084286000003,
0.38505222686,
0.26174768286,
0.26610637086
]
},
{
"command": "pacquet@main",
"mean": 0.30439479446,
"stddev": 0.045046323885515785,
"median": 0.30110643486,
"user": 0.30425456,
"system": 0.77524644,
"min": 0.26013448186,
"max": 0.40610787086,
"times": [
0.26276629286000003,
0.27386159486,
0.29833834786,
0.30387452186,
0.33842791386000004,
0.32164514986000003,
0.40610787086,
0.31537755486,
0.26341421586,
0.26013448186
]
},
{
"command": "pnpr@HEAD",
"mean": 0.27552464436000007,
"stddev": 0.01636905996529539,
"median": 0.27484387986000003,
"user": 0.24700076,
"system": 0.6748411399999998,
"min": 0.25595527886,
"max": 0.30113561986000004,
"times": [
0.28370490386,
0.28598881686,
0.29527121486,
0.26598285586000003,
0.30113561986000004,
0.25595527886,
0.26118491686,
0.25925898886,
0.28424154686,
0.26252230086
]
},
{
"command": "pnpr@main",
"mean": 0.26932633846,
"stddev": 0.0344907367028622,
"median": 0.25545286636000003,
"user": 0.24732165999999997,
"system": 0.65500194,
"min": 0.21295752286,
"max": 0.32218199386,
"times": [
0.21295752286,
0.24535070486000002,
0.25537099686000003,
0.31838328086,
0.25553473586000003,
0.27316537986,
0.25524384686,
0.30013237486,
0.32218199386,
0.25494254786000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.1242632767200003,
"stddev": 0.1570310429630485,
"median": 3.1341953498199997,
"user": 2.5915868599999996,
"system": 1.8742421599999997,
"min": 2.90755538232,
"max": 3.4363595183199998,
"times": [
2.94265234032,
3.4363595183199998,
3.01043063432,
3.22831315932,
3.08559430532,
2.90755538232,
3.18472691932,
3.18279639432,
3.0543350343199998,
3.2098690793199998
]
},
{
"command": "pacquet@main",
"mean": 3.07411188812,
"stddev": 0.10847902861215943,
"median": 3.07595278832,
"user": 2.42433286,
"system": 1.7747963599999999,
"min": 2.91658529532,
"max": 3.27263985632,
"times": [
3.11060825332,
3.18504443832,
3.04129732332,
2.99069984532,
3.12518834532,
2.91658529532,
2.99337588832,
3.27263985632,
2.9822111153199997,
3.12346852032
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5707247151200001,
"stddev": 0.1910912067379358,
"median": 1.48002715532,
"user": 1.21753106,
"system": 1.35103676,
"min": 1.40539604132,
"max": 1.87789582532,
"times": [
1.46865201032,
1.82954339232,
1.87789582532,
1.4914023003199999,
1.8224701313199998,
1.50743751732,
1.4176855763199998,
1.4400097353199999,
1.44675462132,
1.40539604132
]
},
{
"command": "pnpr@main",
"mean": 1.4989295463199999,
"stddev": 0.10223226645859333,
"median": 1.48542887232,
"user": 1.04347856,
"system": 1.1933129599999999,
"min": 1.38714582332,
"max": 1.6670669943199998,
"times": [
1.41894956232,
1.62566733932,
1.6670669943199998,
1.38714582332,
1.3950282673199998,
1.57095581632,
1.39933011832,
1.55429379732,
1.51285893332,
1.45799881132
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.66686864148,
"stddev": 0.1219719497010616,
"median": 0.58574266048,
"user": 0.8056701000000001,
"system": 0.75199648,
"min": 0.56926504848,
"max": 0.8657402254800001,
"times": [
0.57452949848,
0.58131310648,
0.56926504848,
0.57140750348,
0.57247714348,
0.76840688948,
0.8404249064800001,
0.8657402254800001,
0.73494987848,
0.59017221448
]
},
{
"command": "pacquet@main",
"mean": 0.6291132349799999,
"stddev": 0.06417956476935978,
"median": 0.6199561784800001,
"user": 0.7740395999999999,
"system": 0.69122778,
"min": 0.5421971304800001,
"max": 0.7256780524800001,
"times": [
0.5421971304800001,
0.55873575748,
0.5899752114800001,
0.58095898848,
0.63729041748,
0.6560947424800001,
0.7256780524800001,
0.68925080348,
0.6026219394800001,
0.70832930648
]
},
{
"command": "pnpr@HEAD",
"mean": 0.2718782679800001,
"stddev": 0.011714041229554457,
"median": 0.27363051798000004,
"user": 0.22267349999999997,
"system": 0.52641978,
"min": 0.25702006648000003,
"max": 0.29308927948,
"times": [
0.27780841648000004,
0.27244748448000006,
0.27985848748000003,
0.28107526448000003,
0.27481355148000003,
0.25835099848000004,
0.25702006648000003,
0.26204313048000005,
0.29308927948,
0.26227600048000005
]
},
{
"command": "pnpr@main",
"mean": 0.28888999418000005,
"stddev": 0.023773283506888003,
"median": 0.28517170948000004,
"user": 0.2188765,
"system": 0.5576753799999998,
"min": 0.25749809948,
"max": 0.33777600148000003,
"times": [
0.25749809948,
0.26731810948,
0.28502685548,
0.29517284348000006,
0.31836374948,
0.27451212348000004,
0.28531656348,
0.28918446648,
0.33777600148000003,
0.27873112948
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.0014207332200002,
"stddev": 0.06714640619253742,
"median": 1.98849445012,
"user": 1.14612506,
"system": 0.7990220399999999,
"min": 1.92854193262,
"max": 2.12262319962,
"times": [
1.92930521462,
2.03483956462,
2.00025774062,
2.12262319962,
2.0595774426199998,
1.92854193262,
1.9298099576199998,
1.96779789162,
2.06472322862,
1.97673115962
]
},
{
"command": "pacquet@main",
"mean": 1.95545557312,
"stddev": 0.1133890131392561,
"median": 1.9086505971199998,
"user": 1.09043706,
"system": 0.7951143399999999,
"min": 1.83723983862,
"max": 2.12261554462,
"times": [
2.0528476156199997,
2.12261554462,
2.04715174062,
2.10513010662,
1.91856490162,
1.89873629262,
1.83723983862,
1.84973784562,
1.86009998062,
1.86243186462
]
},
{
"command": "pnpr@HEAD",
"mean": 0.25606693662,
"stddev": 0.009041993206086363,
"median": 0.25821139912,
"user": 0.18810126,
"system": 0.54376874,
"min": 0.24111840962000003,
"max": 0.26809164962,
"times": [
0.25674970362,
0.24632427962000003,
0.24111840962000003,
0.24658047162000002,
0.26123715662,
0.26809164962,
0.26234772362,
0.25284534062,
0.25967309462,
0.26570153662
]
},
{
"command": "pnpr@main",
"mean": 0.27021144262,
"stddev": 0.010474208753177323,
"median": 0.26546328661999996,
"user": 0.18969266,
"system": 0.5585242400000001,
"min": 0.25934618662,
"max": 0.29016279262,
"times": [
0.27851555162,
0.26520785362,
0.25934618662,
0.28440440962,
0.26428966062,
0.26174125762,
0.26571871962,
0.26326278162,
0.26946521262,
0.29016279262
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.35797210244,
"stddev": 0.01548925523570165,
"median": 0.36078916674000006,
"user": 0.36207178,
"system": 0.0451887,
"min": 0.32548806824000004,
"max": 0.38334154424000005,
"times": [
0.36433850324000006,
0.36096691724,
0.37146472824000004,
0.36061141624000004,
0.34803121224000005,
0.32548806824000004,
0.35283058424,
0.34957026824000004,
0.36307778224000004,
0.38334154424000005
]
},
{
"command": "pacquet@main",
"mean": 0.38458171313999995,
"stddev": 0.03044595425447092,
"median": 0.38443965224000004,
"user": 0.36666018000000006,
"system": 0.07275709999999999,
"min": 0.34138047424000006,
"max": 0.43493543024000003,
"times": [
0.37935708024000003,
0.35422624924,
0.38952222424000005,
0.34138047424000006,
0.42420073124,
0.40295331324000006,
0.35600839524000005,
0.37097703724000003,
0.43493543024000003,
0.39225619624
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08492602217939396,
"stddev": 0.0027105877456634277,
"median": 0.08520630724000001,
"user": 0.01533348303030303,
"system": 0.012304560606060604,
"min": 0.08020897224000001,
"max": 0.09353794824,
"times": [
0.08539008524000001,
0.09037781224000001,
0.08487352924000001,
0.08593381124,
0.08197567724,
0.08700416224,
0.08393765224000001,
0.08318683424000001,
0.08230819524,
0.08665637424000001,
0.08563338524000001,
0.08284620124000001,
0.08447530624,
0.08137959224,
0.08115028824000001,
0.08313816224000001,
0.08020897224000001,
0.08635656024,
0.09353794824,
0.08761685824000001,
0.08530464324,
0.08366898424000001,
0.08615409724,
0.08582156024000001,
0.08029837024000001,
0.08354455924000001,
0.08555218024000001,
0.08440389324000001,
0.08504216724000001,
0.08520630724000001,
0.08708607724,
0.08661053924,
0.08587794524
]
},
{
"command": "pnpr@main",
"mean": 0.08243097738705882,
"stddev": 0.0018725270352886395,
"median": 0.08203706324000001,
"user": 0.015997532941176475,
"system": 0.010701779411764702,
"min": 0.08002324024,
"max": 0.08834782024000001,
"times": [
0.08277996624,
0.08333065524000001,
0.08379078424000001,
0.08208699824000001,
0.08297765924,
0.08743815124000001,
0.08321373524,
0.08137302924,
0.08283192424000001,
0.08629014324,
0.08834782024000001,
0.08245895924,
0.08218368024,
0.08062821424000001,
0.08121312724,
0.08340275224,
0.08142934524,
0.08111268924000001,
0.08138992124000001,
0.08284736324000001,
0.08023914824,
0.08146279024000001,
0.08411690024000001,
0.08002324024,
0.08232772224000001,
0.08162268124000001,
0.08198712824000001,
0.08114736324,
0.08089204124,
0.08285322524000001,
0.08058193524000001,
0.08142603924000001,
0.08149679224,
0.08134930524
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.807281425579999,
"stddev": 0.16532254043799186,
"median": 4.80331910938,
"user": 2.6859432599999997,
"system": 1.9109594800000003,
"min": 4.54391178238,
"max": 5.0469261023800005,
"times": [
4.75084614738,
4.58296025138,
4.54391178238,
4.81403889538,
4.89931637238,
5.01454245638,
4.79259932338,
4.73043658038,
4.89723634438,
5.0469261023800005
]
},
{
"command": "pacquet@main",
"mean": 4.868555273579999,
"stddev": 0.3162215318207752,
"median": 4.7734213393800005,
"user": 2.75552086,
"system": 1.98703528,
"min": 4.51929912338,
"max": 5.39069923938,
"times": [
5.22503447238,
5.26067393738,
5.39069923938,
4.77963827338,
4.5998333133800005,
4.90851121938,
4.56120110638,
4.76720440538,
4.51929912338,
4.67345764538
]
},
{
"command": "pnpr@HEAD",
"mean": 3.5450737794800005,
"stddev": 0.10447751725976809,
"median": 3.51312856038,
"user": 1.3045088599999999,
"system": 1.36957978,
"min": 3.46449992138,
"max": 3.81602442338,
"times": [
3.5186110683800003,
3.4882485453800003,
3.81602442338,
3.46449992138,
3.4752616933800002,
3.57878295838,
3.50764605238,
3.48467710138,
3.51985752138,
3.59712850938
]
},
{
"command": "pnpr@main",
"mean": 3.59782816598,
"stddev": 0.11644105422791955,
"median": 3.5651825278800002,
"user": 1.4736647599999997,
"system": 1.45380108,
"min": 3.50286892138,
"max": 3.89807515338,
"times": [
3.51634686238,
3.5065915313800002,
3.62563484738,
3.6149694083800004,
3.63722412238,
3.54965174338,
3.89807515338,
3.50286892138,
3.5807133123800003,
3.54620575738
]
}
]
} |
|
| Branch | pr/13029 |
| 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,570.72 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 256.07 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 271.88 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 84.93 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,577.08 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,545.07 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 275.52 ms |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
fecba0e to
379d8b9
Compare
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Changeset missing pnpm bump
|
| --- | ||
| "pacquet": patch | ||
| --- |
There was a problem hiding this comment.
1. Changeset missing pnpm bump 📘 Rule violation § Compliance
The new changeset lists only pacquet and omits the required pnpm entry, so the release tooling will not apply the mandated pnpm bump type. This violates the changeset policy and can cause incorrect versioning/release notes.
Agent Prompt
## Issue description
The new changeset file does not include a `pnpm` entry in the front-matter.
## Issue Context
Compliance requires every changeset to explicitly declare a `pnpm` bump type (`patch`/`minor`/`major`).
## Fix Focus Areas
- .changeset/pacquet-publish-json-errors.md[1-3]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| match route(command, &ctx) { | ||
| Ok(future) => { | ||
| if let Err(error) = future.await { | ||
| if print_json_errors { | ||
| print_json_error(&error); | ||
| std::process::exit(1); | ||
| } | ||
| return Err(error); | ||
| } | ||
| } | ||
| Err(error) => { | ||
| if print_json_errors { | ||
| print_json_error(&error); | ||
| std::process::exit(1); | ||
| } | ||
| return Err(error); | ||
| } |
There was a problem hiding this comment.
2. Clippy exit lint failure 🐞 Bug ☼ Reliability
dispatch.rs introduces new std::process::exit(1) calls without #[expect(clippy::exit)], but the workspace enables clippy::exit = "warn" and CI runs clippy with -D warnings, so this change will fail the clippy job. Additionally, exiting here bypasses normal unwinding/cleanup semantics, which is risky in a CLI that may hold buffered IO and other RAII-managed resources at this point.
Agent Prompt
## Issue description
New `std::process::exit(1)` calls in the `publish --json` error path will trigger the workspace `clippy::exit` lint and fail CI because clippy warnings are denied.
## Issue Context
The repo config sets `clippy::exit = "warn"`, and the CI workflow runs `cargo clippy ... -- -D warnings`. Other `process::exit` call sites are annotated with `#[expect(clippy::exit, reason = ...)]`.
## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/dispatch.rs[273-289]
- Cargo.toml[208-266]
- .github/workflows/pacquet-ci.yml[240-255]
- pnpm/crates/cli/src/cli_args/dispatch_query.rs[55-105]
## Suggested fix direction
Either:
1) Replace `process::exit(1)` with a structured return path (e.g., return `Ok(())` plus a typed outcome/exit-code propagated to `pacquet_cli::main`, so the process exits after normal unwinding), OR
2) If early termination is required, add `#[expect(clippy::exit, reason = "...")]` at each `process::exit` call site (matching existing patterns) and ensure stdout is explicitly flushed before exiting to keep the JSON envelope reliable under piping/capture.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
PR Code Suggestions ✨Latest suggestions up to e2566f5 Warning
Previous suggestionsSuggestions up to commit 379d8b9
|
|||||||||||||||||||||
…pnpm pnpm's errorHandler prints the failure envelope with JSON.stringify(_, null, 2), so pacquet must emit the same two-space indentation to stay byte-for-byte identical. Restore to_string_pretty; a prior review suggestion had switched it to compact output, which diverged from pnpm. Also share the "pack the package" wrap_err context through a single PACK_ERROR_CONTEXT const so the pack/publish wrap sites and the dispatch JSON matcher can't drift apart.
|
Code review by qodo was updated up to the latest commit e2566f5 |
pacquet publish --json failures to match pnpm's JSON error output
Summary
I found this issue while trying to test pnpm 12 with Changesets.
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.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
pacquet publish --json, including a JSON error envelope and exit code1.--reporter=ndjsonis set).authUrl/doneUrlin the JSON error payload when available.