From f061a2b54fc7f3e1e52037575d17c068eba520fd Mon Sep 17 00:00:00 2001 From: tony-sull Date: Fri, 24 Sep 2021 15:59:26 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/build.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/build.ts b/packages/astro/src/build.ts index 02d52bc88..9222aabcf 100644 --- a/packages/astro/src/build.ts +++ b/packages/astro/src/build.ts @@ -215,8 +215,8 @@ ${stack} for (const id of Object.keys(buildState)) { const outPath = new URL(`.${id}`, astroConfig.dist); const parentDir = path.dirname(fileURLToPath(outPath)); - await fs.promises.mkdir(parentDir, {recursive: true}); - const handle = await fs.promises.open(outPath, "w") + await fs.promises.mkdir(parentDir, { recursive: true }); + const handle = await fs.promises.open(outPath, 'w'); await fs.promises.writeFile(handle, buildState[id].contents, buildState[id].encoding); // Ensure the file handle is not left hanging which will @@ -226,7 +226,7 @@ ${stack} delete buildState[id]; delete depTree[id]; - }; + } debug(logging, 'build', `wrote files to disk [${stopTimer(timer.write)}]`); /**