From 897b2a43f04de625bce1f1ae7886658963b1e851 Mon Sep 17 00:00:00 2001 From: fatme Date: Fri, 31 May 2019 13:11:59 +0300 Subject: [PATCH] fix: prepare the project only once per run The project is prepared every time on initial sync, but buildAction prepares again and builds the project (buildAction is executed only the project should be built). This led to the problem that project is prepares twice when buildAction is executed. --- lib/helpers/livesync-command-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/livesync-command-helper.ts b/lib/helpers/livesync-command-helper.ts index 2413dd749c..99ba9eacc4 100644 --- a/lib/helpers/livesync-command-helper.ts +++ b/lib/helpers/livesync-command-helper.ts @@ -83,7 +83,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper { const buildAction = additionalOptions && additionalOptions.buildPlatform ? additionalOptions.buildPlatform.bind(additionalOptions.buildPlatform, d.deviceInfo.platform, buildConfig, this.$projectData) : - this.$buildController.prepareAndBuild.bind(this.$buildController, buildData); + this.$buildController.build.bind(this.$buildController, buildData); const outputPath = additionalOptions && additionalOptions.getOutputDirectory && additionalOptions.getOutputDirectory({ platform: d.deviceInfo.platform,