@@ -28,6 +28,7 @@ interface RootOptions {
28
28
useTsconfig : string [ ] ;
29
29
useTslint : string [ ] ;
30
30
useTsfmt : string [ ] ;
31
+ useVscode : string [ ] ;
31
32
verbose : boolean ;
32
33
version : boolean ;
33
34
}
@@ -50,6 +51,7 @@ let root = commandpost
50
51
. option ( "--useTsconfig <path>" , "using specified config file instead of tsconfig.json" )
51
52
. option ( "--useTslint <path>" , "using specified config file instead of tslint.json" )
52
53
. option ( "--useTsfmt <path>" , "using specified config file instead of tsfmt.json" )
54
+ . option ( "--useVscode <path>" , "using specified config file instead of .vscode/settings.json" )
53
55
. option ( "--verbose" , "makes output more verbose" )
54
56
. option ( "-v, --version" , "output the version number" )
55
57
. action ( ( opts , args ) => {
@@ -64,6 +66,7 @@ let root = commandpost
64
66
let tsfmt = ! ! opts . tsfmt ;
65
67
let tsconfigFile = opts . useTsconfig [ 0 ] ? path . join ( process . cwd ( ) , opts . useTsconfig [ 0 ] ) : null ;
66
68
let tslintFile = opts . useTslint [ 0 ] ? path . join ( process . cwd ( ) , opts . useTslint [ 0 ] ) : null ;
69
+ let vscodeFile = opts . useVscode [ 0 ] ? path . join ( process . cwd ( ) , opts . useVscode [ 0 ] ) : null ;
67
70
let tsfmtFile = opts . useTsfmt [ 0 ] ? path . join ( process . cwd ( ) , opts . useTsfmt [ 0 ] ) : null ;
68
71
let verbose = ! ! opts . verbose ;
69
72
let version = ! ! opts . version ;
@@ -132,6 +135,9 @@ let root = commandpost
132
135
}
133
136
printSetting ( "editorconfig" , editorconfig ) ;
134
137
printSetting ( "vscode" , vscode ) ;
138
+ if ( vscodeFile ) {
139
+ printSetting ( "specified vscode settings.json" , vscodeFile ) ;
140
+ }
135
141
printSetting ( "tsfmt" , tsfmt ) ;
136
142
if ( tsfmtFile ) {
137
143
printSetting ( "specified tsfmt.json" , tsfmtFile ) ;
@@ -156,6 +162,7 @@ let root = commandpost
156
162
tslintFile : tslintFile ,
157
163
editorconfig : editorconfig ,
158
164
vscode : vscode ,
165
+ vscodeFile : vscodeFile ,
159
166
tsfmt : tsfmt ,
160
167
tsfmtFile : tsfmtFile ,
161
168
verbose : verbose ,
@@ -179,6 +186,7 @@ let root = commandpost
179
186
tslintFile : tslintFile ,
180
187
editorconfig : editorconfig ,
181
188
vscode : vscode ,
189
+ vscodeFile : vscodeFile ,
182
190
tsfmt : tsfmt ,
183
191
tsfmtFile : tsfmtFile ,
184
192
verbose : verbose ,
0 commit comments