From 24d499b604c8df616d0faba1ae01dfeb1e98ac50 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Wed, 22 Nov 2023 13:37:56 +0530 Subject: [PATCH] build: tsconfig overhaul --- tsconfig.json | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 09fe66d..d3bd0f3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,29 @@ { "compilerOptions": { - "target": "ES2021", - "module": "CommonJS", - "rootDir": "./src", - "moduleResolution": "Node", - // "sourceMap": true, + "esModuleInterop": true, + "skipLibCheck": true, + "target": "ES2022", + "verbatimModuleSyntax": true, + "allowJs": true, + "resolveJsonModule": true, + "moduleDetection": "force", + // + "strict": true, + // "noUncheckedIndexedAccess": true, + // + "moduleResolution": "NodeNext", + "module": "NodeNext", "outDir": "./dist", + "rootDir": "./src", + "sourceMap": true, + // "declaration": true, "removeComments": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "strict": true, "strictFunctionTypes": true, - "skipLibCheck": true + "lib": [ + "ES2022" + ] }, "include": [ "./src"