angular-cn/packages/compiler-cli/ngcc/test/packages
JoostK 985cadb73d 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
..
build_marker_spec.ts fix(ngcc): make the build-marker error more clear (#32712) 2019-09-25 11:29:45 -07:00
configuration_spec.ts feat(ngcc): support version ranges in project/default configurations (#33008) 2019-10-10 13:59:57 -07:00
entry_point_bundle_spec.ts fix(ngcc): correctly include internal .d.ts files (#33875) 2019-11-18 09:11:34 -08:00
entry_point_spec.ts feat(ngcc): enable private NgModule re-exports in ngcc on request (#33177) 2019-10-22 13:14:31 -04:00