From 13c0944c46d1ddd4bf3d2376b2afaa556ce4a1ab Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 30 Oct 2024 02:03:44 +0530 Subject: [PATCH] feat: create tsconfig.json for server --- server/tsconfig.json | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/server/tsconfig.json b/server/tsconfig.json index a3e18d5c..820e903e 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -3,13 +3,30 @@ "target": "es2018", "module": "commonjs", "outDir": "./dist", - "rootDir": "./src", + "rootDir": "../", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, - "moduleResolution": "node" + "moduleResolution": "node", + "baseUrl": "../", + "paths": { + "*": ["*"], + "src/*": ["src/*"] + }, + "jsx": "react-jsx", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["node_modules"] + "include": [ + "src/**/*", + "../src/shared/**/*", + "../src/helpers/**/*" + ], + "exclude": [ + "node_modules", + "../src/components/**/*", // Exclude frontend components + "../src/pages/**/*", // Exclude frontend pages + "../src/app/**/*" // Exclude other frontend-specific code + ] }