Skip to content

Commit b823639

Browse files
committed
Use moduleResolution classic when syncAllFiles option is not specified
1 parent 88d5c0e commit b823639

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

lib/declarations.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ interface IEnvOptions {
471471

472472
interface IAndroidBuildOptionsSettings extends IAndroidReleaseOptions, IRelease { }
473473

474-
interface IAppFilesUpdaterOptions extends IBundle, IRelease { }
474+
interface IAppFilesUpdaterOptions extends IBundle, IRelease, IOptionalWatchAllFiles { }
475475

476476
interface IPlatformBuildData extends IAppFilesUpdaterOptions, IBuildConfig, IEnvOptions { }
477477

lib/definitions/platform.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ interface IOptionalNativePrepareComposition {
358358
nativePrepare?: INativePrepare;
359359
}
360360

361+
interface IOptionalWatchAllFiles {
362+
watchAllFiles?: boolean;
363+
}
364+
361365
interface IDeployPlatformInfo extends IPlatform, IAppFilesUpdaterOptionsComposition, IProjectDataComposition, IPlatformConfig, IEnvOptions, IOptionalNativePrepareComposition, IOptionalOutputPath, IBuildPlatformAction {
362366
deployOptions: IDeployPlatformOptions
363367
}

lib/services/livesync/livesync-service.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
373373
appFilesUpdaterOptions: {
374374
bundle: options.bundle,
375375
release: options.release,
376+
watchAllFiles: options.liveSyncData.watchAllFiles
376377
},
377378
projectData: options.projectData,
378379
env: options.env,
@@ -577,6 +578,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
577578
rebuiltInformation,
578579
projectData,
579580
deviceBuildInfoDescriptor,
581+
liveSyncData,
580582
settings: latestAppPackageInstalledSettings,
581583
modifiedFiles: allModifiedFiles,
582584
filesToRemove: currentFilesToRemove,
@@ -637,7 +639,8 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
637639
env: liveSyncData.env,
638640
appFilesUpdaterOptions: {
639641
bundle: liveSyncData.bundle,
640-
release: liveSyncData.release
642+
release: liveSyncData.release,
643+
watchAllFiles: liveSyncData.watchAllFiles
641644
},
642645
platforms
643646
},

lib/services/platform-service.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,16 @@ export class PlatformService extends EventEmitter implements IPlatformService {
282282

283283
/* Hooks are expected to use "filesToSync" parameter, as to give plugin authors additional information about the sync process.*/
284284
@helpers.hook('prepare')
285-
private async preparePlatformCore(platform: string, appFilesUpdaterOptions: IAppFilesUpdaterOptions, projectData: IProjectData, platformSpecificData: IPlatformSpecificData, env: Object, changesInfo?: IProjectChangesInfo, filesToSync?: string[], filesToRemove?: string[], nativePrepare?: INativePrepare): Promise<void> {
285+
private async preparePlatformCore(platform: string,
286+
appFilesUpdaterOptions: IAppFilesUpdaterOptions,
287+
projectData: IProjectData,
288+
platformSpecificData: IPlatformSpecificData,
289+
env: Object,
290+
changesInfo?: IProjectChangesInfo,
291+
filesToSync?: string[],
292+
filesToRemove?: string[],
293+
nativePrepare?: INativePrepare): Promise<void> {
294+
286295
this.$logger.out("Preparing project...");
287296

288297
const platformData = this.$platformsData.getPlatformData(platform, projectData);

0 commit comments

Comments
 (0)