Skip to content

Commit e744a6e

Browse files
committed
fix: ensure all dependencies are installed on tns preview command
1 parent 6167820 commit e744a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/livesync-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
325325
@hook("liveSync")
326326
private async liveSyncOperation(deviceDescriptors: ILiveSyncDeviceInfo[], liveSyncData: ILiveSyncInfo, projectData: IProjectData): Promise<void> {
327327
let deviceDescriptorsForInitialSync: ILiveSyncDeviceInfo[] = [];
328+
await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
328329

329330
if (liveSyncData.syncToPreviewApp) {
330331
await this.$previewAppLiveSyncService.initialize({
@@ -337,7 +338,6 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
337338
projectDir: projectData.projectDir
338339
});
339340
} else {
340-
await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
341341
// In case liveSync is called for a second time for the same projectDir.
342342
const isAlreadyLiveSyncing = this.liveSyncProcessesInfo[projectData.projectDir] && !this.liveSyncProcessesInfo[projectData.projectDir].isStopped;
343343

0 commit comments

Comments
 (0)