summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-06-06 16:03:17 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-06-06 16:03:17 +0000
commit8bb28b48ee286439c69b35fa434994d2f83d6702 (patch)
tree5f667f0d232280dbbb4426bebd8e0d37472526c3
parentc22a07db134a9d0741a05123fb506595aabf145b (diff)
downloadastro-8bb28b48ee286439c69b35fa434994d2f83d6702.tar.gz
astro-8bb28b48ee286439c69b35fa434994d2f83d6702.tar.zst
astro-8bb28b48ee286439c69b35fa434994d2f83d6702.zip
[ci] format
-rw-r--r--packages/integrations/deno/src/index.ts7
-rw-r--r--packages/integrations/deno/test/helpers.js7
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts
index 6fd19e53e..aa4496e1f 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 74c7f9fca..d33267848 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);