Skip to content

Remove usbLiveSyncService.isInitialized check #35

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 2, 2017

Conversation

rosen-vladimirov
Copy link
Contributor

In case LiveSync process is currently running, before-prepare hook must not run the tsc compiler. We've been doing this by checking a special property from CLI - usbLiveSyncService.isInitialized. However, there's no need to use this service - we have the information if we have started tsc process, so just use it instead of relying on usbLiveSyncService.
This will allow us to remove the usbLiveSyncService from CLI as it is no longer used anywhere.

In case LiveSync process is currently running, `before-prepare` hook must not run the `tsc` compiler. We've been doing this by checking a special property from CLI - `usbLiveSyncService.isInitialized`. However, there's no need to use this service - we have the information if we have started `tsc` process, so just use it instead of relying on `usbLiveSyncService`.
This will allow us to remove the usbLiveSyncService from CLI as it is no longer used anywhere.
@rosen-vladimirov rosen-vladimirov self-assigned this Sep 29, 2017
Copy link
Contributor

@Mitko-Kerezov Mitko-Kerezov left a comment

Choose a reason for hiding this comment

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

LGTM

@rosen-vladimirov rosen-vladimirov merged commit 59edd19 into master Oct 2, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/remove-usbLiveSyncService branch October 2, 2017 09:33
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