Repository navigation
Commit 9c45e72
fix(pnpm): restore workspace-sibling deps on injected component instances
The engine hands the readPackage hook a workspace project's importer
manifest when it resolves that project as an injected "file:" dependency.
That manifest was already stripped of workspace-sibling deps by the
up-front with-dir transform (Bit wires siblings itself inside importers),
so the injected instance lost its component deps — and with them the
component graph edges recorded at tag time (the deps-graph e2e
"should replace pending version in direct dependency" cluster).
The next @pnpm/napi release passes the lockfile-root-relative directory
of a directory resolution as the hook's second argument; use it to
substitute the project's raw manifest for its dependency instances,
mirroring how pnpm's TS engine applies the hook chain contextually to
raw project manifests. With the current binding the argument is simply
absent and behavior is unchanged.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 0a5e620 commit 9c45e72
1 file changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
323 | 337 | | |
324 | 338 | | |
325 | 339 | | |
| |||
410 | 424 | | |
411 | 425 | | |
412 | 426 | | |
413 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
414 | 435 | | |
415 | 436 | | |
416 | 437 | | |
| |||
0 commit comments