This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit 511218f
authored
fix: support deeply nested pnpm virtual store node_modules paths in resolveAndRunNgcc (#1742)
Uses indexOf instead of lastIndexOf in resolveAndRunNgcc.
This resolves the case where a user is using pnpm and ngcc is resolved through symlinks to a deeply nested virtual store node_modules location:
`some/user/path/node_modules/.pnpm/@angular/[email protected]/node_modules/@angular/compiler-cli/...`
lastIndexOf would resolve to `some/user/path/node_modules/.pnpm/@angular/[email protected]` which is incorrect. indexOf gets you to the desired `some/user/path`1 parent 209947f commit 511218f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments