-
Our setup is pretty simple; we've got at least two services that all run in watch mode with the command
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"test": {},
"deploy": {
"dependsOn": ["build", "test", "lint"]
},
"lint": {},
"start:dev": {
"cache": false
},
"start": {
"dependsOn": ["build"]
},
"migration:run": {
"cache": false
},
"fixture:run": {
"cache": false
}
}
}
Each rebuild deletes and recreates the styles.css bundle, causing a race condition as ui needs to rebuild after detecting a change in the dependencies, and the styles.css bundle being recreated. I added the following line hoping it would allow them to rebuild in a sequential manner, but now
Not sure how to fix this - any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am afraid no such thing exists currently, you could always not delete the files and only ever replace them. Related issues: |
Beta Was this translation helpful? Give feedback.
I am afraid no such thing exists currently, you could always not delete the files and only ever replace them.
Maybe typescript projects could help you here? I don't have enough experience with next.js to tell.
Related issues: