NativeScript / nativescript-dev-typescript

TypeScript support for NativeScript projects
Apache License 2.0
21 stars 10 forks source link

Remove usbLiveSyncService.isInitialized check #35

Closed rosen-vladimirov closed 7 years ago

rosen-vladimirov commented 7 years ago

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.