Commit cb9e4f0
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 8b9566a commit cb9e4f0
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
1702 | | - | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1703 | 1709 | | |
1704 | 1710 | | |
1705 | 1711 | | |
| |||
| 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