Skip to content

Commit 60cb191

Browse files
committed
Fix build race condition
1 parent ff91405 commit 60cb191

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.config/rollup.dist.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function getSentryManifest() {
8686
async function removeDirs(srcPath, options) {
8787
const { exclude } = { __proto__: null, ...options }
8888
const ignore = Array.isArray(exclude) ? exclude : exclude ? [exclude] : []
89-
return Promise.all([
89+
return await Promise.all(
9090
(
9191
await tinyGlob(['**/*'], {
9292
absolute: true,
@@ -96,13 +96,13 @@ async function removeDirs(srcPath, options) {
9696
ignore
9797
})
9898
).map(p => remove(p))
99-
])
99+
)
100100
}
101101

102102
async function removeFiles(srcPath, options) {
103103
const { exclude } = { __proto__: null, ...options }
104104
const ignore = Array.isArray(exclude) ? exclude : exclude ? [exclude] : []
105-
return Promise.all([
105+
return await Promise.all(
106106
(
107107
await tinyGlob(['**/*'], {
108108
absolute: true,
@@ -112,7 +112,7 @@ async function removeFiles(srcPath, options) {
112112
ignore
113113
})
114114
).map(p => remove(p))
115-
])
115+
)
116116
}
117117

118118
function resetBin(bin) {

0 commit comments

Comments
 (0)