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
This commit is contained in:
ghaddaditw
2025-06-08 06:31:40 +00:00
parent a0be54a648
commit 11c6f2d3a6
+26 -8
View File
@@ -3,21 +3,39 @@
"exclude": ["node_modules", "build", "dist", "**/*.test.ts"], "exclude": ["node_modules", "build", "dist", "**/*.test.ts"],
"compilerOptions": { "compilerOptions": {
"incremental": true, "incremental": true,
"tsBuildInfoFile": "./node_modules/typescript/tsbuildinfo", "tsBuildInfoFile": "./node_modules/.cache/typescript/tsbuildinfo",
"noEmit": true, "target": "ES2022",
"module": "ESNext", "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, "strict": true,
"lib": ["esnext", "dom", "dom.iterable"], "noUnusedLocals": true,
"jsx": "preserve", "noUnusedParameters": true,
"esModuleInterop": true, "noImplicitReturns": true,
"skipLibCheck": true, "noFallthroughCasesInSwitch": true,
"allowImportingTsExtensions": true, "noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"moduleResolution": "bundler", "moduleResolution": "bundler",
"baseUrl": ".", "baseUrl": ".",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"types": ["node", "vite/client"], "types": ["node", "vite/client"],
"paths": { "paths": {
"@/*": ["./client/src/*"], "@/*": ["./client/src/*"],
"@shared/*": ["./shared/*"] "@shared/*": ["./shared/*"],
"@assets/*": ["./attached_assets/*"]
} }
} }
} }