From 8d0922eb7dc1900cc0d1254740f4e9522509063c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 28 Sep 2020 13:55:01 +0200 Subject: [PATCH] fix(@angular-devkit/build-angular): resolve i18n outFile from workspaceRoot --- .../angular_devkit/build_angular/src/extract-i18n/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts index f15f595e09b6..618cf4084c4f 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts @@ -122,6 +122,7 @@ export async function execute( // AngularCompilerPlugin doesn't support genDir so we have to adjust outFile instead. outFile = path.join(options.outputPath, outFile); } + outFile = path.resolve(context.workspaceRoot, outFile); if (!context.target || !context.target.project) { throw new Error('The builder requires a target.'); @@ -163,7 +164,7 @@ export async function execute( // Ivy extraction is the default for Ivy applications. usingIvy = (isIvyApplication && options.ivy === undefined) || !!options.ivy; - if (options.ivy) { + if (usingIvy) { if (!isIvyApplication) { context.logger.warn( 'Ivy extraction enabled but application is not Ivy enabled. Extraction may fail.',