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'
}
```
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"cache": true,
|
||||
"options": {
|
||||
"cwd": "packages/twenty-server",
|
||||
"parallel": false,
|
||||
"commands": ["rimraf dist", "nest build --path ./tsconfig.build.json"]
|
||||
},
|
||||
"dependsOn": ["^build"]
|
||||
|
||||
Reference in New Issue
Block a user