Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support deeply nested pnpm virtual store node_modules paths in r…
…esolveAndRunNgcc (#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/compiler-cli@1.2.3/node_modules/@angular/compiler-cli/...` lastIndexOf would resolve to `some/user/path/node_modules/.pnpm/@angular/compiler-cli@1.2.3` which is incorrect. indexOf gets you to the desired `some/user/path`
- Loading branch information