From 7e6e6f71964c10b443341ea46a7469f4e147555f Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 7 Nov 2019 09:26:22 +0100 Subject: [PATCH] fix(@schematics/angular): only show `ngsw-config.json` file not find warning when `ngswConfigPath` is defined --- packages/schematics/angular/migrations/update-9/ngsw-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schematics/angular/migrations/update-9/ngsw-config.ts b/packages/schematics/angular/migrations/update-9/ngsw-config.ts index dd8a2baefa50..eaaac39a2b5f 100644 --- a/packages/schematics/angular/migrations/update-9/ngsw-config.ts +++ b/packages/schematics/angular/migrations/update-9/ngsw-config.ts @@ -23,13 +23,13 @@ export function updateNGSWConfig(): Rule { for (const options of getAllOptions(target)) { const ngswConfigPath = findPropertyInAstObject(options, 'ngswConfigPath'); if (!ngswConfigPath || ngswConfigPath.kind !== 'string') { - logger.warn(`Cannot find file: ${ngswConfigPath}`); continue; } const path = ngswConfigPath.value; const ngswConfigAst = readJsonFileAsAstObject(tree, path); if (!ngswConfigAst || ngswConfigAst.kind !== 'object') { + logger.warn(`Cannot find file: ${ngswConfigPath}`); continue; }