Commit d243919
committed
Fix migration wipe of revert wiring in pnpm vendor
When package.json and pnpm-lock.yaml are already in sync (from a previous
vendor operation) but pnpm-workspace.yaml needs creation for pnpm 11
migration, the code was creating a new VendorEntry with only the workspace
wiring record. This replaced the existing ledger entry, losing the
package.json and lock revert wiring.
The fix returns AlreadyPatched when the core surfaces (package.json and
pnpm-lock.yaml) are in sync, regardless of whether the workspace file
needs updating. This preserves the existing ledger entry with its full
wiring records, maintaining revert capability.1 parent a23abb1 commit d243919
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| |||
0 commit comments