Skip to content

Commit fe24559

Browse files
committed
refactor: add alias paths to tsconfig
1 parent 99356dd commit fe24559

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

tsconfig.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,40 @@
66
"outDir": "dist",
77
"rootDir": "src",
88
"strict": false,
9+
"baseUrl": ".",
910
"esModuleInterop": true,
1011
"experimentalDecorators": true,
1112
"emitDecoratorMetadata": true,
1213
"skipLibCheck": true,
1314
"types": [
1415
"node"
15-
]
16+
],
17+
"paths": {
18+
"@models/*": [
19+
"src/models/*"
20+
],
21+
"@dtos/*": [
22+
"src/dtos/*"
23+
],
24+
"@repos/*": [
25+
"src/repositories/*"
26+
],
27+
"@services/*": [
28+
"src/services/*"
29+
],
30+
"@controllers/*": [
31+
"src/controllers/*"
32+
],
33+
"@config/*": [
34+
"src/config/*"
35+
],
36+
"@middleware/*": [
37+
"src/middleware/*"
38+
],
39+
"@utils/*": [
40+
"src/utils/*"
41+
]
42+
}
1643
},
1744
"include": [
1845
"src/**/*.ts",

0 commit comments

Comments
 (0)