diff --git a/packages/angular/cli/commands/config-impl.ts b/packages/angular/cli/commands/config-impl.ts index db26faf30f..37b1156219 100644 --- a/packages/angular/cli/commands/config-impl.ts +++ b/packages/angular/cli/commands/config-impl.ts @@ -223,6 +223,8 @@ export class ConfigCommand extends Command { } else { this.logger.info(value.toString()); } + + return 0; } private set(options: ConfigCommandSchema) { @@ -264,6 +266,8 @@ export class ConfigCommand extends Command { const output = JSON.stringify(configValue, null, 2); writeFileSync(configPath, output); + + return 0; } } diff --git a/packages/angular/cli/models/command-runner.ts b/packages/angular/cli/models/command-runner.ts index f6f2042c4c..209ed1be62 100644 --- a/packages/angular/cli/models/command-runner.ts +++ b/packages/angular/cli/models/command-runner.ts @@ -77,6 +77,8 @@ export async function runCommand( const content = readFileSync(join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8'); return of(JSON.parse(content)); + } else { + return null; } });