Skip to content

Commit 8800c00

Browse files
Merge pull request #18 from NativeScript/vladimirov/fix-get-cli-version
Fix getting the version of nativescript-cloud when it is not installed
2 parents 7fbd177 + 30376dd commit 8800c00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sys-info.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export class SysInfo implements NativeScriptDoctor.ISysInfo {
301301
public getNativeScriptCloudVersion(): Promise<string> {
302302
return this.getValueForProperty(() => this.nativeScriptCloudVersionCache, async (): Promise<string> => {
303303
const output = await this.execCommand("tns cloud lib version");
304-
return output ? output.trim() : output;
304+
return output ? this.getVersionFromString(output.trim()) : output;
305305
});
306306
}
307307

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-doctor",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Library that helps identifying if the environment can be used for development of {N} apps.",
55
"main": "lib/index.js",
66
"types": "./typings/nativescript-doctor.d.ts",

0 commit comments

Comments
 (0)