Skip to content

Commit 42ef2b0

Browse files
committed
[Config] Setup stricter isolation between frontend and backend tsconfigs
1 parent 79bfb69 commit 42ef2b0

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

services/backend/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"experimentalDecorators": true,
99
"emitDecoratorMetadata": true,
1010
"outDir": "dist",
11-
"rootDir": ".",
11+
"baseUrl": ".",
1212
"esModuleInterop": true,
1313
"skipLibCheck": true,
1414
"strict": true,
@@ -19,5 +19,6 @@
1919
"inlineSources": true,
2020
"resolveJsonModule": true
2121
},
22-
"include": ["src/**/*", "index.js"]
22+
"include": ["index.js", "src"],
23+
"exclude": ["../frontend"]
2324
}

services/frontend/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"baseUrl": ".",
2525
"types": ["node"],
2626
"paths": {
27-
"@/*": ["./src/*"]
27+
"@/*": ["src/*"]
2828
}
2929
},
30+
"references": [{ "path": "./tsconfig.node.json" }],
3031
"include": ["src"],
31-
"references": [{ "path": "./tsconfig.node.json" }]
32+
"exclude": ["../backend"]
3233
}

services/shared/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"experimentalDecorators": true,
88
"emitDecoratorMetadata": true,
99
"outDir": "dist",
10-
"rootDir": ".",
10+
"baseUrl": ".",
1111
"esModuleInterop": true,
1212
"skipLibCheck": true,
1313
"strict": true,
@@ -17,6 +17,5 @@
1717
"sourceRoot": "/",
1818
"inlineSources": true,
1919
"resolveJsonModule": true
20-
},
21-
"include": ["**/*.ts"]
20+
}
2221
}

0 commit comments

Comments
 (0)