chore: update TypeScript configuration for enhanced type support and Bun compatibility
- 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
This commit is contained in:
@@ -10,24 +10,32 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"types": [
|
"types": [
|
||||||
"bun-types"
|
"bun-types",
|
||||||
|
"@types/node",
|
||||||
|
"@types/ws",
|
||||||
|
"@types/jsonwebtoken",
|
||||||
|
"@types/sanitize-html"
|
||||||
],
|
],
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"__tests__/**/*"
|
"__tests__/**/*",
|
||||||
|
"*.d.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|||||||
Reference in New Issue
Block a user