diff --git a/lib/common b/lib/common index 8d326ab9de..c3aaa6cf49 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 8d326ab9deb53b9e1ff44c37a0d1b00cc00f3404 +Subproject commit c3aaa6cf49e108da379a4445dd5e1d001817110e diff --git a/lib/helpers/livesync-command-helper.ts b/lib/helpers/livesync-command-helper.ts index f9315331ee..3be1c0bfa0 100644 --- a/lib/helpers/livesync-command-helper.ts +++ b/lib/helpers/livesync-command-helper.ts @@ -11,7 +11,8 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper { private $analyticsService: IAnalyticsService, private $bundleValidatorHelper: IBundleValidatorHelper, private $errors: IErrors, - private $iOSSimulatorLogProvider: Mobile.IiOSSimulatorLogProvider) { + private $iOSSimulatorLogProvider: Mobile.IiOSSimulatorLogProvider, + private $logger: ILogger) { this.$analyticsService.setShouldDispose(this.$options.justlaunch || !this.$options.watch); } @@ -21,6 +22,10 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper { } public async executeCommandLiveSync(platform?: string, additionalOptions?: ILiveSyncCommandHelperAdditionalOptions) { + if (!this.$options.syncAllFiles) { + this.$logger.info("Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder."); + } + const emulator = this.$options.emulator; await this.$devicesService.initialize({ deviceId: this.$options.device, diff --git a/lib/services/livesync/ios-livesync-service.ts b/lib/services/livesync/ios-livesync-service.ts index 32503cbee6..19264718d8 100644 --- a/lib/services/livesync/ios-livesync-service.ts +++ b/lib/services/livesync/ios-livesync-service.ts @@ -35,7 +35,6 @@ export class IOSLiveSyncService extends PlatformLiveSyncServiceBase implements I this.$fs.copyFile(path.join(path.dirname(projectFilesPath), `${APP_FOLDER_NAME}/*`), tempApp); if (!syncInfo.syncAllFiles) { - this.$logger.info("Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder."); this.$fs.deleteDirectory(path.join(tempApp, TNS_MODULES_FOLDER_NAME)); }