fix(resource): install @nestjs/mapped-types with the project package manager #2515
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 178 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.310
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2515"
general
weight: 0.35
kamilmysliwiec
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When the
resourceschematic adds@nestjs/mapped-typestopackage.json, it schedulesNodePackageInstallTaskwithout apackageManager, sonpm installruns even in pnpm, Yarn and Bun projects. This leaves a straypackage-lock.jsonnext to the existing lock file and fails in workspaces that use theworkspace:protocol.Issue Number: N/A
What is the new behavior?
The install task uses
detectPackageManager(), the same helper the rspack builder rule and the upgrade schematic use, so it runs the package manager that the project lock file indicates (npmwhen there is none). A test covers a project withpnpm-lock.yaml.Does this PR introduce a breaking change?
Other information
Projects without a lock file keep running
npm install.