Skip to content

Commit

Permalink
fix(@schematics/angular): only show ngsw-config.json file not find …
Browse files Browse the repository at this point in the history
…warning when `ngswConfigPath` is defined
  • Loading branch information
alan-agius4 authored and vikerman committed Nov 7, 2019
1 parent 39c56cf commit 7e6e6f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7e6e6f7

Please sign in to comment.