Repository navigation
Commit 2b4475e
committed
Read package.json beside a root pnpm lock pair in hosted mode
The hosted pnpm planner picks which of a root pnpm-lock.yaml /
shrinkwrap.yaml pair to rewrite from the pnpm major the project pins:
node_modules/.modules.yaml, else package.json's packageManager. The
hosted engine only read package.json beside an npm or yarn lock, so on
a fresh clone that pins pnpm 1 or 2 in packageManager (no install
record) hosted rewrote the stray pnpm-lock.yaml while pnpm installs from
shrinkwrap.yaml. Vendored mode and discovery read the pin from disk and
already chose shrinkwrap.yaml. Read the manifest as advisory input
whenever both root pnpm locks are present, so all three agree.
Addresses Bugbot 4500674838 on #2029.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aePC6sLFkqRM2XPWq4P1 parent 6978424 commit 2b4475e
1 file changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
625 | 629 | | |
626 | 630 | | |
627 | | - | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
4332 | 4339 | | |
4333 | 4340 | | |
4334 | 4341 | | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
| 4366 | + | |
| 4367 | + | |
| 4368 | + | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
4335 | 4376 | | |
4336 | 4377 | | |
4337 | 4378 | | |
| |||
0 commit comments