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) {
16
16
17
17
const typesProgram = ts . createProgram ( {
18
18
rootNames : config . fileNames ,
19
+ configFileParsingDiagnostics : config . errors ,
19
20
options : {
20
21
...config . options ,
21
22
outDir : 'types' ,
22
23
declaration : true ,
23
24
emitDeclarationOnly : true ,
24
25
} ,
25
- configFileParsingDiagnostics : config . errors ,
26
26
} ) ;
27
27
const cjsProgram = ts . createProgram ( {
28
28
rootNames : config . fileNames ,
29
+ configFileParsingDiagnostics : config . errors ,
29
30
options : {
30
31
...config . options ,
31
32
outDir : 'cjs' ,
32
33
removeComments : true ,
33
34
module : ts . ModuleKind . CommonJS ,
34
35
} ,
35
- configFileParsingDiagnostics : config . errors ,
36
36
} ) ;
37
37
const esmProgram = ts . createProgram ( {
38
38
rootNames : config . fileNames ,
39
+ configFileParsingDiagnostics : config . errors ,
39
40
options : {
40
41
...config . options ,
41
42
outDir : 'esm' ,
42
43
removeComments : true ,
43
44
module : ts . ModuleKind . ESNext ,
44
45
} ,
45
- configFileParsingDiagnostics : config . errors ,
46
46
} ) ;
47
47
48
48
typesProgram . emit ( undefined , ts . sys . writeFile ) ;
You can’t perform that action at this time.
0 commit comments