angular/packages/compiler-cli/ngcc/src
JoostK 0854dc8688 fix(ngcc): correctly include internal .d.ts files (#33875)
Some declaration files may not be referenced from an entry-point's
main typings file, as it may declare types that are only used internally.
ngcc has logic to include declaration files based on all source files,
to ensure internal declaration files are available.

For packages following APF layout, however, this logic was insufficient.
Consider an entry-point with base path of `/esm2015/testing` and typings
residing in `/testing`, the file
`/esm2015/testing/src/nested/internal.js` has its typings file at
`/testing/src/nested/internal.d.ts`. Previously, the declaration was
assumed to be located at `/esm2015/testing/testing/internal.d.ts` (by
means of `/esm2015/testing/src/nested/../../testing/internal.d.ts`)
which is not where the declaration file can be found. This commit
resolves the issue by looking in the correct directory.

PR Close #33875
2019-11-18 09:11:34 -08:00
..
analysis refactor(ivy): remove ngBaseDef (#33264) 2019-10-25 13:11:34 -07:00
dependencies feat(ngcc): support ignoreMissingDependencies in ngcc config (#33192) 2019-10-17 19:43:39 -04:00
entry_point_finder fix(ngcc): do not analyze dependencies for non Angular entry-points (#32303) 2019-08-26 10:08:44 -07:00
execution refactor(ngcc): add debug logging for the duration of different operations (#32427) 2019-09-09 15:55:14 -04:00
host fix(ngcc): correctly associate decorators with aliased classes (#33878) 2019-11-18 09:10:36 -08:00
logging feat(compiler-cli): ngcc - make logging more configurable (#29591) 2019-04-01 11:53:28 -07:00
migrations feat(ngcc): add a migration for undecorated child classes (#33362) 2019-10-25 09:16:50 -07:00
packages fix(ngcc): correctly include internal .d.ts files (#33875) 2019-11-18 09:11:34 -08:00
rendering fix(ngcc): do not emit ES2015 code in ES5 files (#33514) 2019-11-13 13:49:31 -08:00
writing refactor(ngcc): abstract updating package.json files behind an interface (#32427) 2019-09-09 15:55:13 -04:00
constants.ts refactor(ivy): move ngcc into a higher level folder (#29092) 2019-03-20 14:45:54 -04:00
main.ts refactor(ngcc): fix formatting of missing dependencies error (#33139) 2019-10-14 16:30:39 +00:00
utils.ts refactor(ngcc): abstract task selection behind an interface (#32427) 2019-09-09 15:55:13 -04:00