From 79b054dc7379e272fd9e4d96d25e99bbfb070a98 Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 21 Feb 2017 16:16:27 -0800 Subject: [PATCH] fix(@angular/cli): put aliases for local config too (#4886) --- packages/@angular/cli/models/config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/@angular/cli/models/config.ts b/packages/@angular/cli/models/config.ts index 547823d70358..e856e3336ae7 100644 --- a/packages/@angular/cli/models/config.ts +++ b/packages/@angular/cli/models/config.ts @@ -86,6 +86,17 @@ export class CliConfig extends CliConfigBase { cliConfig.alias('apps.0.prefix', 'defaults.prefix') ]; + // Additional aliases which do not emit any messages. + cliConfig.alias('defaults.interface.prefix', 'defaults.inline.prefixInterfaces'); + cliConfig.alias('defaults.component.inlineStyle', 'defaults.inline.style'); + cliConfig.alias('defaults.component.inlineTemplate', 'defaults.inline.template'); + cliConfig.alias('defaults.component.spec', 'defaults.spec.component'); + cliConfig.alias('defaults.class.spec', 'defaults.spec.class'); + cliConfig.alias('defaults.component.directive', 'defaults.spec.directive'); + cliConfig.alias('defaults.component.module', 'defaults.spec.module'); + cliConfig.alias('defaults.component.pipe', 'defaults.spec.pipe'); + cliConfig.alias('defaults.component.service', 'defaults.spec.service'); + // If any of them returned true, output a deprecation warning. if (aliases.some(x => !!x)) { console.error(chalk.yellow(oneLine`