@@ -46,6 +46,7 @@ interface CompilerOptions {
46
46
noLibCheck ?: boolean ;
47
47
noResolve ?: boolean ;
48
48
out ?: string ;
49
+ outFile ?: string ; // new name for out
49
50
outDir ?: string ; // Redirect output structure to this directory
50
51
preserveConstEnums ?: boolean ;
51
52
removeComments ?: boolean ; // Do not emit comments in output
@@ -89,6 +90,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
89
90
noLibCheck : { type : types . boolean } ,
90
91
noResolve : { type : types . boolean } ,
91
92
out : { type : types . string } ,
93
+ outFile : { type : types . string } ,
92
94
outDir : { type : types . string } ,
93
95
preserveConstEnums : { type : types . boolean } ,
94
96
removeComments : { type : types . boolean } ,
@@ -291,6 +293,11 @@ function rawToTsCompilerOptions(jsonOptions: CompilerOptions, projectDir: string
291
293
if ( compilerOptions . out !== undefined ) {
292
294
compilerOptions . out = path . resolve ( projectDir , compilerOptions . out ) ;
293
295
}
296
+
297
+ if ( compilerOptions . outFile !== undefined ) {
298
+ // Till out is removed. Support outFile by just copying it to `out`
299
+ compilerOptions . out = path . resolve ( projectDir , compilerOptions . outFile ) ;
300
+ }
294
301
295
302
return compilerOptions ;
296
303
}
0 commit comments