From 93e3bbe1ed6704a5c85596ad0b869c3fc6453ed1 Mon Sep 17 00:00:00 2001 From: Guilherme Date: Mon, 28 Jan 2019 21:56:45 -0200 Subject: [PATCH] fix(serve): pass `cordovaBasePath` to cordova-build builder (#57) The cordovaBasePath property is required for Monorepo projects since the applications are not in the project root. --- builders/cordova-serve/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builders/cordova-serve/index.ts b/builders/cordova-serve/index.ts index f555d34..08df658 100644 --- a/builders/cordova-serve/index.ts +++ b/builders/cordova-serve/index.ts @@ -36,9 +36,9 @@ export class CordovaServeBuilder implements Builder { } protected _getCordovaBuildConfig(cordovaServeOptions: CordovaServeBuilderSchema): Observable> { - const { platform, cordovaAssets, cordovaMock } = cordovaServeOptions; + const { platform, cordovaBasePath, cordovaAssets, cordovaMock } = cordovaServeOptions; const [ project, target, configuration ] = cordovaServeOptions.cordovaBuildTarget.split(':'); - const cordovaBuildTargetSpec = { project, target, configuration, overrides: { platform, cordovaAssets, cordovaMock } }; + const cordovaBuildTargetSpec = { project, target, configuration, overrides: { platform, cordovaBasePath, cordovaAssets, cordovaMock } }; const cordovaBuildTargetConfig = this.context.architect.getBuilderConfiguration(cordovaBuildTargetSpec); return this.context.architect.getBuilderDescription(cordovaBuildTargetConfig).pipe(