Skip to content

Commit

Permalink
Put "ts-node" at the top of --showConfig output
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 30, 2021
1 parent aba4ae6 commit 0d1f9bb
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,18 @@ export function main(
);
process.exit(1);
}
const json = ts.convertToTSConfig(
service.config,
service.configFilePath ?? join(cwd, 'ts-node-implicit-tsconfig.json'),
service.ts.sys
);
json['ts-node'] = {
...service.options,
experimentalEsmLoader: undefined,
compilerOptions: undefined,
project: service.configFilePath ?? service.options.project,
const json = {
['ts-node']: {
...service.options,
experimentalEsmLoader: undefined,
compilerOptions: undefined,
project: service.configFilePath ?? service.options.project,
},
...ts.convertToTSConfig(
service.config,
service.configFilePath ?? join(cwd, 'ts-node-implicit-tsconfig.json'),
service.ts.sys
),
};
console.log(
// Assumes that all configuration options which can possibly be specified via the CLI are JSON-compatible.
Expand Down

0 comments on commit 0d1f9bb

Please sign in to comment.