File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,33 +16,33 @@ if (config === undefined) {
1616
1717const typesProgram = ts . createProgram ( {
1818 rootNames : config . fileNames ,
19+ configFileParsingDiagnostics : config . errors ,
1920 options : {
2021 ...config . options ,
2122 outDir : 'types' ,
2223 declaration : true ,
2324 emitDeclarationOnly : true ,
2425 } ,
25- configFileParsingDiagnostics : config . errors ,
2626} ) ;
2727const cjsProgram = ts . createProgram ( {
2828 rootNames : config . fileNames ,
29+ configFileParsingDiagnostics : config . errors ,
2930 options : {
3031 ...config . options ,
3132 outDir : 'cjs' ,
3233 removeComments : true ,
3334 module : ts . ModuleKind . CommonJS ,
3435 } ,
35- configFileParsingDiagnostics : config . errors ,
3636} ) ;
3737const esmProgram = ts . createProgram ( {
3838 rootNames : config . fileNames ,
39+ configFileParsingDiagnostics : config . errors ,
3940 options : {
4041 ...config . options ,
4142 outDir : 'esm' ,
4243 removeComments : true ,
4344 module : ts . ModuleKind . ESNext ,
4445 } ,
45- configFileParsingDiagnostics : config . errors ,
4646} ) ;
4747
4848typesProgram . emit ( undefined , ts . sys . writeFile ) ;
You can’t perform that action at this time.
0 commit comments