File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -37,24 +37,7 @@ if (!src.length) {
37
37
}
38
38
39
39
if ( fs . existsSync ( 'tsconfig.json' ) ) {
40
- tsconfig = JSON . parse ( fs . readFileSync ( 'tsconfig.json' ) ) . compilerOptions ;
41
- // Map moduleResolution to the appropriate enum.
42
- switch ( tsconfig . moduleResolution ) {
43
- case 'node' :
44
- tsconfig . moduleResolution = ts . ModuleResolutionKind . NodeJs ;
45
- break ;
46
- case 'node16' :
47
- tsconfig . moduleResolution = ts . ModuleResolutionKind . Node16 ;
48
- break ;
49
- case 'nodenext' :
50
- tsconfig . moduleResolution = ts . ModuleResolutionKind . NodeNext ;
51
- break ;
52
- case 'classic' :
53
- tsconfig . moduleResolution = ts . ModuleResolutionKind . Classic ;
54
- break ;
55
- default :
56
- break ;
57
- }
40
+ tsconfig = ts . getParsedCommandLineOfConfigFile ( 'tsconfig.json' , { } , ts . sys ) ;
58
41
}
59
42
60
43
let failedBuild = false ;
You can’t perform that action at this time.
0 commit comments