angular-docs-cn/packages/compiler-cli/ngcc/test
George Kalpakas bf682d73d4 fix(ngcc): correctly get config for packages in nested `node_modules/` (#37040)
Previously, ngcc would only be able to match an ngcc configuration to
packages that were located inside the project's top-level
`node_modules/`. However, if there are multiple versions of a package in
a project (e.g. as a transitive dependency of other packages), multiple
copies of a package (at different versions) may exist in nested
`node_modules/` directories. For example, one at
`<project-root>/node_modules/some-package/` and one at
`<project-root>/node_modules/other-package/node_modules/some-package/`.
In such cases, ngcc was only able to detect the config for the first
copy but not for the second.

This commit fixes this by returning a new instance of
`ProcessedNgccPackageConfig` for each different package path (even if
they refer to the same package name). In these
`ProcessedNgccPackageConfig`, the `entryPoints` paths have been
processed to take the package path into account.

PR Close #37040
2020-06-11 18:58:36 -07:00
..
analysis refactor(ngcc): rename `EntryPoint#package` to `EntryPoint#packagePath` (#37040) 2020-06-11 18:58:36 -07:00
dependencies fix(ngcc): correctly get config for packages in nested `node_modules/` (#37040) 2020-06-11 18:58:36 -07:00
entry_point_finder fix(ngcc): correctly get config for packages in nested `node_modules/` (#37040) 2020-06-11 18:58:36 -07:00
execution build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
helpers refactor(ngcc): add `packageName` property to `EntryPoint` interface (#37040) 2020-06-11 18:58:36 -07:00
host fix(ngcc): find decorated constructor params on IIFE wrapped classes (#37436) 2020-06-05 09:22:04 -07:00
integration refactor(ngcc): add `packageName` property to `EntryPoint` interface (#37040) 2020-06-11 18:58:36 -07:00
locking perf(ngcc): allow immediately reporting a stale lock file (#37250) 2020-06-02 17:30:03 -04:00
logging build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
migrations build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
packages fix(ngcc): correctly get config for packages in nested `node_modules/` (#37040) 2020-06-11 18:58:36 -07:00
rendering refactor(ngcc): rename `EntryPoint#package` to `EntryPoint#packagePath` (#37040) 2020-06-11 18:58:36 -07:00
sourcemaps build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
writing refactor(ngcc): rename `EntryPoint#package` to `EntryPoint#packagePath` (#37040) 2020-06-11 18:58:36 -07:00
BUILD.bazel refactor(ngcc): fix typos in comments (#37040) 2020-06-11 18:58:36 -07:00
ngcc_options_spec.ts perf(ngcc): cache parsed tsconfig between runs (#37417) 2020-06-04 09:19:38 -07:00
utils_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00