forked from ton77v/type_orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
27 lines (27 loc) · 1.31 KB
/
tsconfig.json
File metadata and controls
27 lines (27 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"compilerOptions": {
"allowJs": true,
"declaration": true, // Generate corresponding .d.ts file
"target": "es2020", // Specify the ECMAScript target version
"module": "commonjs", // Specify module code generation
"lib": ["es2020"], // Specify library files to be included in the compilation
"outDir": "./dist", // Specify output directory for the compiled files
"rootDir": "./src", // Specify the root directory of the source files
"strict": true, // Enable all strict type-checking options
"esModuleInterop": true, // Enable compatibility with CommonJS-style imports
"skipLibCheck": true, // Skip type checking of declaration files
"forceConsistentCasingInFileNames": true, // Ensure consistent casing in file names
"resolveJsonModule": true, // Allow importing JSON files as modules
"baseUrl": ".", // Base directory to resolve non-relative module names
"paths": {
"*": ["node_modules/*", "src/types/*"],
},
// should enable decorators for TypeORM
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
// strictPropertyInitialization false is neat for static props etc
"strictPropertyInitialization": false // for TypeORM props | use "prop!"
},
"include": ["src/**/*.ts", "src/**/*.js"],
"exclude": ["node_modules", "src/**/*.test.ts"],
}