From f5b2ae616f1878cb782b8ac7033a137e2ba3aa5a Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Sun, 5 May 2019 15:40:30 +0100 Subject: [PATCH] feat(ivy): ngcc - add debug message for invalid entry-points (#30270) PR Close #30270 --- packages/compiler-cli/ngcc/src/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/compiler-cli/ngcc/src/main.ts b/packages/compiler-cli/ngcc/src/main.ts index 9da09766e6..4a760b3e63 100644 --- a/packages/compiler-cli/ngcc/src/main.ts +++ b/packages/compiler-cli/ngcc/src/main.ts @@ -95,9 +95,16 @@ export function mainNgcc( return; } - const {entryPoints} = finder.findEntryPoints( + const {entryPoints, invalidEntryPoints} = finder.findEntryPoints( 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) { markNonAngularPackageAsProcessed(fs, absoluteTargetEntryPointPath, propertiesToConsider); return;