File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ var check_setup_1 = require('./check-setup');
4
4
function allTrue ( obj ) {
5
5
return Object . values ( obj ) . every ( function ( x ) { return x === true ; } ) ;
6
6
}
7
- function verified ( checks ) {
8
- return allTrue ( checks . system ) && allTrue ( checks . setup ) ;
9
- }
10
7
function result ( x ) {
11
8
return x ;
12
9
}
@@ -22,7 +19,9 @@ function verifySetup() {
22
19
tutorial : ! ! check_setup_1 . hasTutorialDep ( )
23
20
}
24
21
} ;
25
- checks . passed = verified ( checks ) ;
22
+ checks . system . passed = allTrue ( checks . system ) ;
23
+ checks . setup . passed = allTrue ( checks . system ) ;
24
+ checks . passed = checks . system . passed && checks . setup . passed ;
26
25
return checks ;
27
26
}
28
27
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ function allTrue(obj: Object): boolean {
9
9
return Object . values ( obj ) . every ( ( x ) => x === true ) ;
10
10
}
11
11
12
- function verified ( checks : CR . Checks ) : boolean {
13
- return allTrue ( checks . system ) && allTrue ( checks . setup ) ;
14
- }
15
-
16
12
function result ( x ) {
17
13
return x ;
18
14
}
@@ -30,6 +26,8 @@ export default function verifySetup(): CR.Checks {
30
26
}
31
27
} ;
32
28
33
- checks . passed = verified ( checks ) ;
29
+ checks . system . passed = allTrue ( checks . system ) ;
30
+ checks . setup . passed = allTrue ( checks . system ) ;
31
+ checks . passed = checks . system . passed && checks . setup . passed ;
34
32
return checks ;
35
33
}
Original file line number Diff line number Diff line change @@ -81,10 +81,12 @@ declare namespace CR {
81
81
interface Checks {
82
82
passed ?: boolean ;
83
83
system : {
84
+ passed ?: boolean ;
84
85
node : boolean ;
85
86
npm : boolean ;
86
87
} ;
87
88
setup : {
89
+ passed ?: boolean ;
88
90
dir : boolean ;
89
91
packageJson : boolean ;
90
92
tutorial : boolean ;
You can’t perform that action at this time.
0 commit comments