-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
31 lines (31 loc) · 977 Bytes
/
tsconfig.json
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
28
29
30
31
{
"compilerOptions": {
"module": "NodeNext", // Quy định output module được sử dụng
"moduleResolution": "NodeNext",
"target": "ES2022", // Target output cho code
"outDir": "dist", // Đường dẫn output cho thư mục build
"esModuleInterop": true,
"strict": true /* Enable all strict type-checking options. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"baseUrl": ".", // Đường dẫn base cho các import
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
"paths": {
"~/*": [
"src/*"
] // Đường dẫn tương đối cho các import (alias)
}
},
"ts-node": {
"require": [
"tsconfig-paths/register"
]
},
"files": [
"src/type.d.ts"
], // Các file dùng để defined global type cho dự án
"include": [
"src/**/*"
] // Đường dẫn include cho các file cần build
}