- Switch moduleResolution to "bundler" for improved module handling - Add type definitions for Node.js, WebSocket, JWT, and sanitize-html - Enable experimental decorators and decorator metadata - Expand include paths to support additional type definition files - Maintain existing project structure and path aliases
44 lines
840 B
JSON
44 lines
840 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"lib": [
|
|
"esnext",
|
|
"dom"
|
|
],
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"types": [
|
|
"bun-types",
|
|
"@types/node",
|
|
"@types/ws",
|
|
"@types/jsonwebtoken",
|
|
"@types/sanitize-html"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
]
|
|
},
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"__tests__/**/*",
|
|
"*.d.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |