From 8bb28b48ee286439c69b35fa434994d2f83d6702 Mon Sep 17 00:00:00 2001 From: matthewp Date: Mon, 6 Jun 2022 16:03:17 +0000 Subject: [PATCH] [ci] format --- packages/integrations/deno/src/index.ts | 7 ++++--- packages/integrations/deno/test/helpers.js | 7 +++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts index 6fd19e53ed..aa4496e1f3 100644 --- a/packages/integrations/deno/src/index.ts +++ b/packages/integrations/deno/src/index.ts @@ -62,17 +62,18 @@ export default function createIntegration(args?: Options): AstroIntegration { allowOverwrite: true, format: 'esm', bundle: true, - external: [ "@astrojs/markdown-remark"] + external: ['@astrojs/markdown-remark'], }); // Remove chunks, if they exist. Since we have bundled via esbuild these chunks are trash. try { - const chunkFileNames = _vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'chunks/chunk.[hash].mjs'; + const chunkFileNames = + _vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'chunks/chunk.[hash].mjs'; const chunkPath = npath.dirname(chunkFileNames); const chunksDirUrl = new URL(chunkPath + '/', _buildConfig.server); await fs.promises.rm(chunksDirUrl, { recursive: true, force: true }); } catch {} - } + }, }, }; } diff --git a/packages/integrations/deno/test/helpers.js b/packages/integrations/deno/test/helpers.js index 74c7f9fca5..d33267848c 100644 --- a/packages/integrations/deno/test/helpers.js +++ b/packages/integrations/deno/test/helpers.js @@ -26,13 +26,13 @@ export async function startModFromSubprocess(baseUrl) { let proc = Deno.run({ cmd: ['deno', 'run', '--allow-env', '--allow-net', fromFileUrl(entryUrl)], cwd: fromFileUrl(baseUrl), - stderr: 'piped' + stderr: 'piped', }); const stderr = readableStreamFromReader(proc.stderr); const dec = new TextDecoder(); - for await(let bytes of stderr) { + for await (let bytes of stderr) { let msg = dec.decode(bytes); - if(msg.includes(`Server running`)) { + if (msg.includes(`Server running`)) { break; } } @@ -49,7 +49,6 @@ export async function runBuildAndStartApp(fixturePath, cb) { await close(); } - export async function runBuildAndStartAppFromSubprocess(fixturePath, cb) { const url = new URL(fixturePath, dir); const close = await runBuild(fixturePath);