File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,11 @@ class DoctorService implements IDoctorService {
34
34
await this . $analyticsService . track ( "DoctorEnvironmentSetup" , hasWarnings ? "incorrect" : "correct" ) ;
35
35
}
36
36
37
- this . printInfosCore ( infos ) ;
38
-
39
37
if ( hasWarnings ) {
40
38
this . $logger . info ( "There seem to be issues with your configuration." ) ;
41
39
} else {
42
40
this . $logger . out ( "No issues were detected." . bold ) ;
41
+ this . printInfosCore ( infos ) ;
43
42
}
44
43
45
44
try {
Original file line number Diff line number Diff line change @@ -100,14 +100,15 @@ class VersionsService implements IVersionsService {
100
100
allComponents . push ( nativescriptCliInformation ) ;
101
101
}
102
102
103
- const nativescriptCoreModulesInformation : IVersionInformation = await this . getTnsCoreModulesVersion ( ) ;
104
- if ( nativescriptCoreModulesInformation ) {
105
- allComponents . push ( nativescriptCoreModulesInformation ) ;
106
- }
107
-
108
- const runtimesVersions : IVersionInformation [ ] = await this . getRuntimesVersions ( ) ;
103
+ if ( this . projectData ) {
104
+ const nativescriptCoreModulesInformation : IVersionInformation = await this . getTnsCoreModulesVersion ( ) ;
105
+ if ( nativescriptCoreModulesInformation ) {
106
+ allComponents . push ( nativescriptCoreModulesInformation ) ;
107
+ }
109
108
110
- allComponents = allComponents . concat ( runtimesVersions ) ;
109
+ const runtimesVersions : IVersionInformation [ ] = await this . getRuntimesVersions ( ) ;
110
+ allComponents = allComponents . concat ( runtimesVersions ) ;
111
+ }
111
112
112
113
return allComponents
113
114
. map ( componentInformation => {
You can’t perform that action at this time.
0 commit comments