Skip to content

Commit 897b2a4

Browse files
committed
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.
1 parent ad08b81 commit 897b2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/helpers/livesync-command-helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
8383

8484
const buildAction = additionalOptions && additionalOptions.buildPlatform ?
8585
additionalOptions.buildPlatform.bind(additionalOptions.buildPlatform, d.deviceInfo.platform, buildConfig, this.$projectData) :
86-
this.$buildController.prepareAndBuild.bind(this.$buildController, buildData);
86+
this.$buildController.build.bind(this.$buildController, buildData);
8787

8888
const outputPath = additionalOptions && additionalOptions.getOutputDirectory && additionalOptions.getOutputDirectory({
8989
platform: d.deviceInfo.platform,

0 commit comments

Comments
 (0)