[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:
@ -26,9 +26,6 @@ COPY ./packages/twenty-emails /app/packages/twenty-emails
|
||||
COPY ./packages/twenty-shared /app/packages/twenty-shared
|
||||
COPY ./packages/twenty-server /app/packages/twenty-server
|
||||
|
||||
RUN npx nx run twenty-shared:build
|
||||
RUN npx nx run twenty-emails:build
|
||||
|
||||
RUN npx nx run twenty-server:build
|
||||
RUN mv /app/packages/twenty-server/dist /app/packages/twenty-server/build
|
||||
RUN npx nx run twenty-server:build:packageJson
|
||||
|
||||
Reference in New Issue
Block a user