From cd09a0c61baabba009e70ffea3ade666592fe149 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 2 May 2024 13:12:54 +0200 Subject: [PATCH] build(others): update TypeScript compiler options in tsconfig.json This commit updates the TypeScript compilerOptions in tsconfig.json. The changes include higher module resolution targets, adjustments in various compiler constraints, and the modification of paths for baseUrl. This will help improve the code's compile-time and run-time behavior. Signed-off-by: Mathis --- tsconfig.json | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 07a737a..55bde05 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,22 @@ { "compilerOptions": { - "target": "es2017", - "module": "es6", - "rootDir": "./src", - "moduleResolution": "node", + "module": "commonjs", + "declaration": true, + "removeComments": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "allowSyntheticDefaultImports": true, + "target": "ES2021", + "sourceMap": true, + "outDir": "./dist", "baseUrl": "./", + "incremental": true, + "skipLibCheck": true, + "strictNullChecks": true, + "noImplicitAny": true, + "strictBindCallApply": true, + "forceConsistentCasingInFileNames": false, + "noFallthroughCasesInSwitch": true, "paths": { "@services/*": [ "src/services/*" @@ -26,19 +38,11 @@ ] }, "resolveJsonModule": true, - "declaration": true, "declarationMap": true, - "sourceMap": true, - "outDir": "./dist", - "removeComments": false, "noEmitOnError": true, "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, "strict": true, - "noImplicitAny": true, - "strictNullChecks": true, "strictFunctionTypes": true, - "strictBindCallApply": true, "strictPropertyInitialization": true, "noImplicitThis": true, "useUnknownInCatchVariables": true, @@ -47,12 +51,10 @@ "noUnusedParameters": true, "exactOptionalPropertyTypes": true, "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "allowUnusedLabels": true, - "allowUnreachableCode": true, - "skipLibCheck": true + "allowUnreachableCode": true }, }