Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 89bb82b

Browse files
authored
feat: add support for experimentalDecorators and emitDecoratorMetadata from tsconfig.json (#97)
1 parent d64a537 commit 89bb82b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ts-node.ts

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export interface TSConfig {
1717
outDir?: string;
1818
target?: string;
1919
esModuleInterop?: boolean;
20+
experimentalDecorators?: boolean;
21+
emitDecoratorMetadata?: boolean;
2022
};
2123
}
2224

@@ -71,6 +73,8 @@ function registerTSNode(root: string) {
7173
compilerOptions: {
7274
esModuleInterop: tsconfig.compilerOptions.esModuleInterop,
7375
target: tsconfig.compilerOptions.target || 'es2017',
76+
experimentalDecorators: tsconfig.compilerOptions.experimentalDecorators || false,
77+
emitDecoratorMetadata: tsconfig.compilerOptions.emitDecoratorMetadata || false,
7478
module: 'commonjs',
7579
sourceMap: true,
7680
rootDirs,

0 commit comments

Comments
 (0)