Fix import twenty-shared (#9754)
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
This commit is contained in:
@ -25,9 +25,9 @@
|
||||
"resolveJsonModule": true,
|
||||
"types": ["jest", "node"],
|
||||
"paths": {
|
||||
"src/*": ["packages/twenty-server/src/*"],
|
||||
"test/*": ["packages/twenty-server/test/*"],
|
||||
"twenty-emails": ["packages/twenty-emails/dist"]
|
||||
"src/*": ["./src/*"],
|
||||
"test/*": ["./test/*"],
|
||||
"twenty-emails": ["../twenty-emails/dist"]
|
||||
}
|
||||
},
|
||||
"ts-node": {
|
||||
|
||||
Reference in New Issue
Block a user