0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Simon He 2024-06-25 13:33:31 +00:00 committed by astrobot-houston
parent 02c37c7b8c
commit 16af927e14

View file

@ -508,15 +508,14 @@ export function pluginContent(
return;
}
// Cache build output of chunks and assets
const promises: Promise<void[] | undefined>[] = []
const promises: Promise<void[] | undefined>[] = [];
for (const { cached, dist } of cachedBuildOutput) {
if (fsMod.existsSync(dist)) {
promises.push(copyFiles(dist, cached, true));
}
}
if (promises.length)
await Promise.all(promises)
if (promises.length) await Promise.all(promises);
},
},
};