telerik / mobile-cli-lib

Contains common infrastructure for CLIs - mainly AppBuilder, NativeScript, DDB and Proton.
Apache License 2.0
11 stars 10 forks source link

fix(userSettings): Don't fail when user settings file is not a valid json #1059

Closed Fatme closed 6 years ago

Fatme commented 6 years ago

In case when user executes some command and by some reasons user settings file is not a valid json, {N} CLI throws "Unexpected token in JSON at position 0" error. After that user is not able to execute any cli command until the file exists.

https://github.com/NativeScript/nativescript-cli/issues/3151

Fatme commented 6 years ago

@rosen-vladimirov @Mitko-Kerezov