Skip to content

Commit b297431

Browse files
authored
fix: More edge cases in ts-node (fixes #163)
1 parent 711b0bf commit b297431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/ts-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function getTsNodeRegistrationProperties(tsInstance: typeof ts) {
9898
: void 0;
9999

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

103103
return { compilerOptions, fileNames, tsNodeOptions: options };
104104
}

0 commit comments

Comments
 (0)