mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-05 02:41:26 +00:00
fix(esbuild): sequence rebuild calls to prevent Windows EBUSY race on asset copy
This commit is contained in:
parent
fda3e985b1
commit
ba5345c084
1 changed files with 4 additions and 1 deletions
|
|
@ -125,7 +125,10 @@ async function main() {
|
|||
copyLocales(srcDir, distDir)
|
||||
setupLocaleWatcher(srcDir, distDir)
|
||||
} else {
|
||||
await Promise.all([extensionCtx.rebuild(), workerCtx.rebuild()])
|
||||
// Run sequentially on rebuild to avoid Windows EBUSY races when both
|
||||
// onEnd hooks copy the same asset directories concurrently.
|
||||
await extensionCtx.rebuild()
|
||||
await workerCtx.rebuild()
|
||||
await Promise.all([extensionCtx.dispose(), workerCtx.dispose()])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue