From 11c6f2d3a6266864429507232c924f22987c284d Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Sun, 8 Jun 2025 06:31:40 +0000 Subject: [PATCH] Configure project for production and improve TypeScript settings Updates tsconfig.json: configures build cache, target, lib, jsx, strictness, module resolution, and paths. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ff0be73b-afdd-4747-978b-bb8301fb0a82 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/a068be6c-2570-4906-9bee-fdf0110e3cd4.jpg --- tsconfig.json | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a0203ee..e7f23dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,21 +3,39 @@ "exclude": ["node_modules", "build", "dist", "**/*.test.ts"], "compilerOptions": { "incremental": true, - "tsBuildInfoFile": "./node_modules/typescript/tsbuildinfo", - "noEmit": true, + "tsBuildInfoFile": "./node_modules/.cache/typescript/tsbuildinfo", + "target": "ES2022", "module": "ESNext", + "lib": ["ES2022", "DOM", "DOM.Iterable", "WebWorker"], + "allowJs": true, + "checkJs": false, + "jsx": "react-jsx", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./dist", "strict": true, - "lib": ["esnext", "dom", "dom.iterable"], - "jsx": "preserve", - "esModuleInterop": true, - "skipLibCheck": true, - "allowImportingTsExtensions": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "bundler", "baseUrl": ".", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, "types": ["node", "vite/client"], "paths": { "@/*": ["./client/src/*"], - "@shared/*": ["./shared/*"] + "@shared/*": ["./shared/*"], + "@assets/*": ["./attached_assets/*"] } } }