forked from noxious/server
58 lines
1.7 KiB
JSON
58 lines
1.7 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// Enable latest features
|
|
"lib": ["ESNext"],
|
|
"target": "ESNext",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"moduleDetection": "force",
|
|
"allowJs": true,
|
|
"declaration": true,
|
|
"noImplicitAny": true,
|
|
"resolveJsonModule": true,
|
|
"sourceMap": true,
|
|
"isolatedModules": true,
|
|
|
|
// Best practices
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
// Output
|
|
"outDir": "./dist",
|
|
"rootDir": ".",
|
|
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"#application/*": ["./src/application/*", "./dist/application/*"],
|
|
"#commands/*": ["./src/commands/*", "./dist/commands/*"],
|
|
"#entities/*": ["./src/entities/*", "./dist/entities/*"],
|
|
"#controllers/*": ["./src/controllers/*", "./dist/controllers/*"],
|
|
"#jobs/*": ["./src/jobs/*", "./dist/jobs/*"],
|
|
"#managers/*": ["./src/managers/*", "./dist/managers/*"],
|
|
"#middleware/*": ["./src/middleware/*", "./dist/middleware/*"],
|
|
"#models/*": ["./src/models/*", "./dist/models/*"],
|
|
"#repositories/*": ["./src/repositories/*", "./dist/repositories/*"],
|
|
"#services/*": ["./src/services/*", "./dist/services/*"],
|
|
"#events/*": ["./src/events/*", "./dist/events/*"]
|
|
},
|
|
|
|
// Specify multiple folders that act like './node_modules/@types'
|
|
"typeRoots": ["./node_modules/@types"],
|
|
|
|
// Other options
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"migrations/**/*.ts", // Explicitly include migrations
|
|
"**/*.tsx"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |