File tree Expand file tree Collapse file tree 4 files changed +33
-297
lines changed Expand file tree Collapse file tree 4 files changed +33
-297
lines changed Original file line number Diff line number Diff line change 71
71
"glob" : " ^7.1.3" ,
72
72
"json-stable-stringify" : " ^1.0.1" ,
73
73
"minimatch" : " ^3.0.4" ,
74
- "tsconfig" : " ^7.0 .0" ,
74
+ "tsconfig-loader " : " ^1.1 .0" ,
75
75
"typescript-json-schema" : " ^0.38.3" ,
76
76
"yargs" : " ^13.2.4"
77
77
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { loadSync } from 'tsconfig' ;
1
+ import loadTsconfig from 'tsconfig-loader ' ;
2
2
3
- export default function loadTsConfig ( cwd : string = process . cwd ( ) ) : any {
4
- const result = loadSync ( cwd ) ;
5
- const compilerOptions =
6
- ( result . config && result . config . compilerOptions ) || { } ;
3
+ export default function loadTsConfig ( cwd : string = process . cwd ( ) ) {
4
+ const result = loadTsconfig ( { cwd} ) ;
5
+ const compilerOptions = result ?. tsConfig . compilerOptions || { } ;
7
6
if (
8
7
compilerOptions . experimentalDecorators === false &&
9
8
compilerOptions . emitDecoratorMetadata === undefined
You can’t perform that action at this time.
0 commit comments