Commit e7f4f8e
fix(yarn): handle scoped packages in link dependency extraction
Scoped npm packages (e.g., @scope/pkg) have an extra path component
in the tarball structure. The extraction command now uses
--strip-components=4 for scoped packages instead of 3.
Path components:
- Non-scoped: ./node_modules/pkg/ (3 components)
- Scoped: ./node_modules/@scope/pkg/ (4 components)
Co-authored-by: Ona <no-reply@ona.com>1 parent 5f951ef commit e7f4f8e
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
1624 | | - | |
1625 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1626 | 1632 | | |
1627 | 1633 | | |
1628 | 1634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
277 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
279 | | - | |
| 283 | + | |
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
287 | | - | |
| 291 | + | |
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
| |||
0 commit comments