[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:
Paul Rastoin
2025-02-04 18:46:16 +01:00
committed by GitHub
parent 125a0c3419
commit 0a8d75bc07
5 changed files with 9 additions and 6 deletions

View File

@ -9,6 +9,9 @@
"scripts": {
"build": "npx vite build"
},
"dependencies": {
"twenty-shared": "workspace:*"
},
"exports": {
".": {
"import": "./dist/index.mjs",