Skip to content

Commit e4c14c2

Browse files
authored
Merge pull request #3708 from NativeScript/sis0k0/prepare-native-bundle-checks
fix(livesync): stop forcing native prepare when using --bundle
2 parents 9f8fd7d + 73dd938 commit e4c14c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/prepare-platform-native-service.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
2626
await this.cleanProject(config.platform, config.appFilesUpdaterOptions, config.platformData, config.projectData);
2727
}
2828

29+
// Move the native application resources from platforms/.../app/App_Resources
30+
// to the right places in the native project,
31+
// because webpack copies them on every build (not every change).
2932
if (!config.changesInfo || config.changesInfo.changesRequirePrepare || config.appFilesUpdaterOptions.bundle) {
3033
this.prepareAppResources(config.platformData, config.projectData);
34+
}
35+
36+
if (!config.changesInfo || config.changesInfo.changesRequirePrepare) {
3137
await config.platformData.platformProjectService.prepareProject(config.projectData, config.platformSpecificData);
3238
}
3339

34-
if (!config.changesInfo || config.changesInfo.modulesChanged || config.appFilesUpdaterOptions.bundle) {
40+
if (!config.changesInfo || config.changesInfo.modulesChanged) {
3541
await this.$pluginsService.validate(config.platformData, config.projectData);
3642

3743
const appDestinationDirectoryPath = path.join(config.platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME);

0 commit comments

Comments
 (0)