From e54aa9d925aa94eb4d3c0aee504d1f5234f29019 Mon Sep 17 00:00:00 2001 From: martmull Date: Mon, 6 Oct 2025 18:32:55 +0200 Subject: [PATCH] Fix rimraf not cleaning dist properly (#14903) trying to solve build errors when launching commands ```console > nx run twenty-shared:generateBarrels [existing outputs match the cache, left as is] > nx run twenty-shared:build [existing outputs match the cache, left as is] > nx run twenty-emails:build [existing outputs match the cache, left as is] > nx run twenty-server:typecheck > tsc -b tsconfig.json --incremental > nx run twenty-server:build > rimraf dist > nest build --path ./tsconfig.build.json > SWC Running... [Error: ENOTEMPTY: directory not empty, rmdir '/Users/martinmuller/Desktop/twenty/packages/twenty-server/dist/src/modules'] { errno: -66, code: 'ENOTEMPTY', syscall: 'rmdir', path: '/Users/martinmuller/Desktop/twenty/packages/twenty-server/dist/src/modules' } ``` --- packages/twenty-server/project.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-server/project.json b/packages/twenty-server/project.json index 774d496e38..8b80d32c8f 100644 --- a/packages/twenty-server/project.json +++ b/packages/twenty-server/project.json @@ -9,6 +9,7 @@ "cache": true, "options": { "cwd": "packages/twenty-server", + "parallel": false, "commands": ["rimraf dist", "nest build --path ./tsconfig.build.json"] }, "dependsOn": ["^build"]