[FIX] Nx project's scope build dependency management (#10010)
# Introduction Defined `dependsOn` for each nx project's configuration that has a dependency to another local package ( ui, shared ). As follows: ```json "dependsOn": ["^build"] ``` Where the `^` symbol means "all dependencies of this project" Now on a fresh repo, no built or install deps after install dependencies you can directly hit `npx nx build PROJECT_NAME` closes https://github.com/twentyhq/core-team-issues/issues/371 Related what was failing [run](https://github.com/twentyhq/twenty-infra/actions/runs/13141544809/job/36669643182) Cancelled before deploy, attested build was correct within the publish and digest
This commit is contained in:
@ -10,7 +10,8 @@
|
||||
"options": {
|
||||
"cwd": "packages/twenty-server",
|
||||
"commands": ["rimraf dist", "nest build --path ./tsconfig.build.json"]
|
||||
}
|
||||
},
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"test:integration": {
|
||||
"executor": "nx:run-commands",
|
||||
|
||||
Reference in New Issue
Block a user