Skip to content

fix: ensure all dependencies are installed on tns preview command #3961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Oct 1, 2018

PR Checklist

What is the current behavior?

An error is thrown when some dependency is not installed on tns preview command

What is the new behavior?

{N} CLI ensures all dependencies are installed on tns preview command

@@ -325,6 +325,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
@hook("liveSync")
private async liveSyncOperation(deviceDescriptors: ILiveSyncDeviceInfo[], liveSyncData: ILiveSyncInfo, projectData: IProjectData): Promise<void> {
let deviceDescriptorsForInitialSync: ILiveSyncDeviceInfo[] = [];
await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will not work for before-livesync hook

@Fatme Fatme force-pushed the fatme/ensure-all-dependencies branch from e744a6e to 60ce21f Compare October 4, 2018 08:57
@Fatme Fatme merged commit 88d738e into master Oct 5, 2018
@Fatme Fatme deleted the fatme/ensure-all-dependencies branch October 5, 2018 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants