Skip to content

Commit 88d738e

Browse files
author
Fatme
authored
Merge pull request #3961 from NativeScript/fatme/ensure-all-dependencies
fix: ensure all dependencies are installed on `tns preview` command
2 parents f8276b7 + 60ce21f commit 88d738e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/livesync-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
4444

4545
public async liveSync(deviceDescriptors: ILiveSyncDeviceInfo[], liveSyncData: ILiveSyncInfo): Promise<void> {
4646
const projectData = this.$projectDataService.getProjectData(liveSyncData.projectDir);
47+
await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
4748
await this.liveSyncOperation(deviceDescriptors, liveSyncData, projectData);
4849
}
4950

@@ -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)