fix(@angular/cli): enable analytics for safe builders

Fixes #14355
This commit is contained in:
Charles Lyding 2019-05-10 01:19:13 -04:00 committed by Keen Yee Liau
parent 061b941722
commit 3912fdee5d

View File

@ -264,7 +264,10 @@ export abstract class ArchitectCommand<
const run = await this._architect.scheduleTarget(
target,
overrides as json.JsonObject,
{ logger: this.logger },
{
logger: this.logger,
analytics: isPackageNameSafeForAnalytics(builderConf) ? this.analytics : undefined,
},
);
const result = await run.output.toPromise();