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:
Charles Bochet
2025-01-20 23:10:39 +01:00
committed by GitHub
parent 3838fef812
commit e3f7cec82f
16 changed files with 43 additions and 30 deletions

View File

@ -45581,7 +45581,7 @@ __metadata:
languageName: unknown
linkType: soft
"twenty-emails@workspace:packages/twenty-emails":
"twenty-emails@workspace:*, twenty-emails@workspace:packages/twenty-emails":
version: 0.0.0-use.local
resolution: "twenty-emails@workspace:packages/twenty-emails"
languageName: unknown
@ -45612,6 +45612,7 @@ __metadata:
file-saver: "npm:^2.0.5"
recoil-sync: "npm:^0.2.0"
transliteration: "npm:^2.3.5"
twenty-shared: "workspace:*"
languageName: unknown
linkType: soft
@ -45673,6 +45674,8 @@ __metadata:
rimraf: "npm:^5.0.5"
ts-morph: "npm:^24.0.0"
tsconfig-paths: "npm:^4.2.0"
twenty-emails: "workspace:*"
twenty-shared: "workspace:*"
typeorm: "patch:typeorm@0.3.20#./patches/typeorm+0.3.20.patch"
typescript: "npm:5.3.3"
unzipper: "npm:^0.12.3"
@ -45680,7 +45683,7 @@ __metadata:
languageName: unknown
linkType: soft
"twenty-shared@workspace:packages/twenty-shared":
"twenty-shared@workspace:*, twenty-shared@workspace:packages/twenty-shared":
version: 0.0.0-use.local
resolution: "twenty-shared@workspace:packages/twenty-shared"
languageName: unknown
@ -45689,6 +45692,8 @@ __metadata:
"twenty-ui@workspace:packages/twenty-ui":
version: 0.0.0-use.local
resolution: "twenty-ui@workspace:packages/twenty-ui"
dependencies:
twenty-shared: "workspace:*"
languageName: unknown
linkType: soft