Skip to content

Commit 3a64aea

Browse files
author
Fatme
authored
Merge pull request #4127 from NativeScript/fatme/fix-release-build
fix(release-build): rebuild project when there are project changes and release option is provided
2 parents d1cd491 + 1901214 commit 3a64aea

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)