[ci] yarn format

This commit is contained in:
tony-sull 2021-09-24 15:59:26 +00:00 committed by GitHub Actions
parent 0fca1fbcab
commit f061a2b54f

View file

@ -215,8 +215,8 @@ ${stack}
for (const id of Object.keys(buildState)) { for (const id of Object.keys(buildState)) {
const outPath = new URL(`.${id}`, astroConfig.dist); const outPath = new URL(`.${id}`, astroConfig.dist);
const parentDir = path.dirname(fileURLToPath(outPath)); const parentDir = path.dirname(fileURLToPath(outPath));
await fs.promises.mkdir(parentDir, {recursive: true}); await fs.promises.mkdir(parentDir, { recursive: true });
const handle = await fs.promises.open(outPath, "w") const handle = await fs.promises.open(outPath, 'w');
await fs.promises.writeFile(handle, buildState[id].contents, buildState[id].encoding); await fs.promises.writeFile(handle, buildState[id].contents, buildState[id].encoding);
// Ensure the file handle is not left hanging which will // Ensure the file handle is not left hanging which will
@ -226,7 +226,7 @@ ${stack}
delete buildState[id]; delete buildState[id];
delete depTree[id]; delete depTree[id];
}; }
debug(logging, 'build', `wrote files to disk [${stopTimer(timer.write)}]`); debug(logging, 'build', `wrote files to disk [${stopTimer(timer.write)}]`);
/** /**