From 5f5a4b947ee84a5f327e62d11017b2b4b8a0ff9a Mon Sep 17 00:00:00 2001 From: Rasmus Schultz Date: Wed, 23 Mar 2022 12:00:02 +0100 Subject: [PATCH] I broke ts-node - it needs a module:commonjs override, see https://github.com/TypeStrong/ts-node/issues/436 --- tsconfig.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 73abc00..0ac1c28 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,11 @@ { "include": ["src"], "exclude": ["dist"], + "ts-node": { + "compilerOptions": { + "module": "commonjs" /* enables running the test with ts-node */ + } + }, "compilerOptions": { /* TODO review and adjust settings */ @@ -15,7 +20,7 @@ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */