In this PR: - removing rootDir / baseUrl from any tsconfig.json - we need to keep it in tsconfig.spec.json and also specify rootDir in jest.config.ts moduleMapper because of the way nx jest executor works (automatically moving back to root) - we need to explictly specify the depencies to twenty-shared / twenty-emails (built packages) in packages package.json to help nx understand dependencies
27 lines
621 B
JSON
27 lines
621 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"types": ["jest", "node"],
|
|
"baseUrl": "../..",
|
|
"paths": {
|
|
"@/*": ["./packages/twenty-front/src/modules/*"],
|
|
"~/*": ["./packages/twenty-front/src/*"],
|
|
"twenty-ui": ["./packages/twenty-ui/src/index.ts"],
|
|
"@ui/*": ["./packages/twenty-ui/src/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"**/__mocks__/**/*",
|
|
"jest.config.ts",
|
|
"setupTests.ts",
|
|
"src/**/*.d.ts",
|
|
"src/**/*.spec.ts",
|
|
"src/**/*.spec.tsx",
|
|
"src/**/*.test.ts",
|
|
"src/**/*.test.tsx",
|
|
"tsup.config.ts",
|
|
"tsup.ui.index.tsx",
|
|
"vite.config.ts"
|
|
]
|
|
}
|