Skip to content

Commit

Permalink
fix: More edge cases in ts-node (fixes #163)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonara committed Oct 21, 2022
1 parent 711b0bf commit b297431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ts-helpers.ts
Expand Up @@ -98,7 +98,7 @@ export function getTsNodeRegistrationProperties(tsInstance: typeof ts) {
: void 0;

const fileNames = pcl?.fileNames || config.fileNames;
const compilerOptions = Object.assign(config.options, options.compilerOptions, { outDir: pcl?.options.outDir });
const compilerOptions = Object.assign({}, config.options, options.compilerOptions, { outDir: pcl?.options.outDir });

return { compilerOptions, fileNames, tsNodeOptions: options };
}
Expand Down

0 comments on commit b297431

Please sign in to comment.