feat(ivy): ngcc - add debug message for invalid entry-points (#30270)

PR Close #30270
This commit is contained in:
Pete Bacon Darwin 2019-05-05 15:40:30 +01:00 committed by Kara Erickson
parent 1660b34e2d
commit f5b2ae616f
1 changed files with 8 additions and 1 deletions

View File

@ -95,9 +95,16 @@ export function mainNgcc(
return; return;
} }
const {entryPoints} = finder.findEntryPoints( const {entryPoints, invalidEntryPoints} = finder.findEntryPoints(
AbsoluteFsPath.from(basePath), absoluteTargetEntryPointPath, pathMappings); AbsoluteFsPath.from(basePath), absoluteTargetEntryPointPath, pathMappings);
invalidEntryPoints.forEach(invalidEntryPoint => {
logger.debug(
`Invalid entry-point ${invalidEntryPoint.entryPoint.path}.`,
`It is missing required dependencies:\n` +
invalidEntryPoint.missingDependencies.map(dep => ` - ${dep}`).join('\n'));
});
if (absoluteTargetEntryPointPath && entryPoints.length === 0) { if (absoluteTargetEntryPointPath && entryPoints.length === 0) {
markNonAngularPackageAsProcessed(fs, absoluteTargetEntryPointPath, propertiesToConsider); markNonAngularPackageAsProcessed(fs, absoluteTargetEntryPointPath, propertiesToConsider);
return; return;