Skip to content

Commit 1901214

Browse files
committed
fix(release-build): rebuild project when there are project changes and release option is provided
LiveSync is not triggered in release mode so we need to rebuild the project when there are project changes in order to apply changes on device
1 parent d1cd491 commit 1901214

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/platform-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ export class PlatformService extends EventEmitter implements IPlatformService {
367367
}
368368

369369
public async shouldBuild(platform: string, projectData: IProjectData, buildConfig: IBuildConfig, outputPath?: string): Promise<boolean> {
370+
if (buildConfig.release && this.$projectChangesService.currentChanges.hasChanges) {
371+
return true;
372+
}
373+
370374
if (this.$projectChangesService.currentChanges.changesRequireBuild) {
371375
return true;
372376
}

0 commit comments

Comments
 (0)