File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const defaultStats = {
14
14
imports : true ,
15
15
exports : true ,
16
16
specs : true ,
17
- loc : false ,
17
+ loc : true ,
18
18
files : true
19
19
} ;
20
20
@@ -39,17 +39,17 @@ program
39
39
} )
40
40
. parse ( process . argv ) ;
41
41
42
+ const tsConfigFilePath = path . join ( process . cwd ( ) , program . tsconfig ) ;
42
43
const options = process . argv . slice ( 2 ) ;
43
- if ( options . length === 0 ) {
44
- // no options given, run all defaults
44
+ if ( options . length === 0 || program . tsconfig ) {
45
+ // no options given, set from defaults
45
46
for ( let opt in defaultStats ) {
46
47
if ( defaultStats [ opt ] ) {
47
48
program [ opt ] = true ;
48
49
}
49
50
}
50
51
}
51
52
52
- const tsConfigFilePath = path . join ( process . cwd ( ) , program . tsconfig ) ;
53
53
if ( ! fs . existsSync ( tsConfigFilePath ) ) {
54
54
console . warn ( `"${ tsConfigFilePath } " file not found. Abort.` ) ;
55
55
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments