refactor(ivy): ngcc - expose the entryPoint from the EntryPointBundle interface (#30591)

This will allow users of the `EntryPointBundle` to use some of the `EntryPoint`
properties without us having to pass them around one by one.

PR Close #30591
This commit is contained in:
Pete Bacon Darwin
2019-05-25 17:46:07 +01:00
committed by Kara Erickson
parent a94bdc6793
commit e943859843
10 changed files with 38 additions and 13 deletions

View File

@ -18,6 +18,7 @@ import {NgccSourcesCompilerHost} from './ngcc_compiler_host';
* format of a package entry-point.
*/
export interface EntryPointBundle {
entryPoint: EntryPoint;
formatProperty: EntryPointJsonProperty;
format: EntryPointFormat;
isCore: boolean;
@ -60,5 +61,5 @@ export function makeEntryPointBundle(
null;
const isFlatCore = isCore && src.r3SymbolsFile === null;
return {format, formatProperty, rootDirs, isCore, isFlatCore, src, dts};
return {entryPoint, format, formatProperty, rootDirs, isCore, isFlatCore, src, dts};
}