Skip to content

Commit 9fd73b4

Browse files
author
Umutcan ÖNER
committed
fix: add path mappings to root tsconfig for workspace package resolution
1 parent 1a163d1 commit 9fd73b4

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

tsconfig.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
"declaration": true,
1111
"declarationMap": true,
1212
"sourceMap": true,
13-
"outDir": "./dist",
14-
"rootDir": ".",
1513
"removeComments": false,
16-
"noEmit": false,
14+
"noEmit": true,
1715
"importHelpers": true,
1816
"isolatedModules": true,
1917
"allowSyntheticDefaultImports": true,
@@ -27,7 +25,24 @@
2725
"skipLibCheck": true,
2826
"resolveJsonModule": true,
2927
"incremental": true,
30-
"composite": true
28+
"composite": true,
29+
"baseUrl": ".",
30+
"paths": {
31+
"@aicd/core": ["packages/core/src"],
32+
"@aicd/core/*": ["packages/core/src/*"],
33+
"@aicd/database": ["packages/database/src"],
34+
"@aicd/database/*": ["packages/database/src/*"],
35+
"@aicd/auth": ["packages/auth/src"],
36+
"@aicd/auth/*": ["packages/auth/src/*"],
37+
"@aicd/cms": ["packages/cms/src"],
38+
"@aicd/cms/*": ["packages/cms/src/*"],
39+
"@aicd/api": ["packages/api/src"],
40+
"@aicd/api/*": ["packages/api/src/*"],
41+
"@aicd/app": ["packages/app/src"],
42+
"@aicd/app/*": ["packages/app/src/*"],
43+
"@aicd/web": ["packages/web/src"],
44+
"@aicd/web/*": ["packages/web/src/*"]
45+
}
3146
},
3247
"exclude": ["node_modules", "dist", "build", "coverage", ".turbo", ".next", "out"]
3348
}

0 commit comments

Comments
 (0)