From 1d3ef51cd9c280201585bf9cdcb77fd4d7d5904e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 10 Dec 2023 17:15:55 +0100 Subject: [PATCH] Update TypeScript config. --- tsconfig.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index f6e7cb5bc..3275a3401 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,13 @@ { "compilerOptions": { - "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + /* https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping */ + "lib": ["ES2023"], + "module": "node16", + "target": "ES2022", + "outDir": "./lib", + "rootDir": "./src", + "strict": true, + "noImplicitAny": true, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ }, "exclude": ["node_modules", "**/*.test.ts"]