File tree 2 files changed +18
-16
lines changed
2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -213,16 +213,18 @@ export function main(
213
213
) ;
214
214
process . exit ( 1 ) ;
215
215
}
216
- const json = ts . convertToTSConfig (
217
- service . config ,
218
- service . configFilePath ?? join ( cwd , 'ts-node-implicit-tsconfig.json' ) ,
219
- service . ts . sys
220
- ) ;
221
- json [ 'ts-node' ] = {
222
- ...service . options ,
223
- experimentalEsmLoader : undefined ,
224
- compilerOptions : undefined ,
225
- project : service . configFilePath ?? service . options . project ,
216
+ const json = {
217
+ [ 'ts-node' ] : {
218
+ ...service . options ,
219
+ experimentalEsmLoader : undefined ,
220
+ compilerOptions : undefined ,
221
+ project : service . configFilePath ?? service . options . project ,
222
+ } ,
223
+ ...ts . convertToTSConfig (
224
+ service . config ,
225
+ service . configFilePath ?? join ( cwd , 'ts-node-implicit-tsconfig.json' ) ,
226
+ service . ts . sys
227
+ ) ,
226
228
} ;
227
229
console . log (
228
230
// Assumes that all configuration options which can possibly be specified via the CLI are JSON-compatible.
Original file line number Diff line number Diff line change @@ -888,6 +888,12 @@ test.suite('ts-node', (test) => {
888
888
stdout ,
889
889
JSON . stringify (
890
890
{
891
+ 'ts-node' : {
892
+ cwd : native ( `${ ROOT_DIR } /tests` ) ,
893
+ projectSearchDir : native ( `${ ROOT_DIR } /tests` ) ,
894
+ project : native ( `${ ROOT_DIR } /tests/tsconfig.json` ) ,
895
+ require : [ ] ,
896
+ } ,
891
897
compilerOptions : {
892
898
target : 'es6' ,
893
899
jsx : 'react' ,
@@ -904,12 +910,6 @@ test.suite('ts-node', (test) => {
904
910
outDir : './.ts-node' ,
905
911
module : 'commonjs' ,
906
912
} ,
907
- 'ts-node' : {
908
- cwd : native ( `${ ROOT_DIR } /tests` ) ,
909
- projectSearchDir : native ( `${ ROOT_DIR } /tests` ) ,
910
- project : native ( `${ ROOT_DIR } /tests/tsconfig.json` ) ,
911
- require : [ ] ,
912
- } ,
913
913
} ,
914
914
null ,
915
915
2
You can’t perform that action at this time.
0 commit comments