From 04bd79f551a5ccf06f5977a7e4ce547baa0143fe Mon Sep 17 00:00:00 2001 From: Kevin-Umali Date: Fri, 15 Mar 2024 15:10:52 +0800 Subject: [PATCH] Added source map --- server/.swcrc | 3 ++- server/tsconfig.json | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/server/.swcrc b/server/.swcrc index c7faad7..8f6866e 100644 --- a/server/.swcrc +++ b/server/.swcrc @@ -5,7 +5,7 @@ "syntax": "typescript", "tsx": false, "dynamicImport": true, - "decorators": false + "decorators": true }, "transform": {}, "target": "es2022", @@ -76,6 +76,7 @@ "noInterop": false, "lazy": false }, + "sourceMaps": true, "minify": true, "isModule": true } diff --git a/server/tsconfig.json b/server/tsconfig.json index ac38e88..d9c74e8 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -1,22 +1,25 @@ { "compilerOptions": { - "typeRoots": ["@types", "node_modules/@types"], + "target": "ES2022", + "module": "ES2022", + "sourceMap": true, + "outDir": "./dist", + "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "target": "ES2022", + "removeComments": true, "allowJs": true, "resolveJsonModule": true, "moduleDetection": "force", - "strict": true, "noUncheckedIndexedAccess": true, - "moduleResolution": "NodeNext", - "module": "NodeNext", - "outDir": "./dist", - "sourceMap": true, - "lib": ["ES2022"], + "moduleResolution": "Node", + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "skipDefaultLibCheck": true, "forceConsistentCasingInFileNames": true, "allowSyntheticDefaultImports": true, - "isolatedModules": true + "isolatedModules": true, + "lib": ["ES2022"] }, "include": ["src/**/*", "src/__tests__/**/*.ts", "prisma/*", "@types"], "exclude": ["node_modules", "dist"]