Skip to content

Commit b8e4eae

Browse files
committed
fix: populate correctly prepareData and buildData when they are based on $options
1 parent b30ab1e commit b8e4eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers/livesync-command-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
6868
projectDir: this.$projectData.projectDir
6969
});
7070

71-
const buildData = this.$buildDataService.getBuildData(this.$projectData.projectDir, d.deviceInfo.platform, { ...this.$options, outputPath, buildForDevice: !d.isEmulator });
71+
const buildData = this.$buildDataService.getBuildData(this.$projectData.projectDir, d.deviceInfo.platform, { ...this.$options.argv, outputPath, buildForDevice: !d.isEmulator });
7272

7373
const buildAction = additionalOptions && additionalOptions.buildPlatform ?
7474
additionalOptions.buildPlatform.bind(additionalOptions.buildPlatform, d.deviceInfo.platform, buildData, this.$projectData) :
@@ -175,7 +175,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
175175
sdk: this.$options.sdk
176176
});
177177

178-
const buildData = this.$buildDataService.getBuildData(liveSyncInfo.projectDir, platform, { ...this.$options, clean: true, skipWatcher: true });
178+
const buildData = this.$buildDataService.getBuildData(liveSyncInfo.projectDir, platform, { ...this.$options.argv, clean: true, skipWatcher: true });
179179

180180
await this.$deployController.deploy({
181181
buildData,

0 commit comments

Comments
 (0)