diff options
author | 2022-06-23 13:05:55 +0000 | |
---|---|---|
committer | 2022-06-23 13:05:55 +0000 | |
commit | 16cdfeef81c7c0472c7fccc882fd3c39b0e88bcd (patch) | |
tree | a8a876670faa895d1e7c6e58fb0d54568c85d16e | |
parent | b36ecb717e2cb623501c6d9a60471ac4daba43a8 (diff) | |
download | astro-16cdfeef81c7c0472c7fccc882fd3c39b0e88bcd.tar.gz astro-16cdfeef81c7c0472c7fccc882fd3c39b0e88bcd.tar.zst astro-16cdfeef81c7c0472c7fccc882fd3c39b0e88bcd.zip |
[ci] format
-rw-r--r-- | packages/integrations/partytown/src/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/integrations/partytown/src/index.ts b/packages/integrations/partytown/src/index.ts index 51343b169..44ffbe310 100644 --- a/packages/integrations/partytown/src/index.ts +++ b/packages/integrations/partytown/src/index.ts @@ -1,9 +1,9 @@ import { partytownSnippet } from '@builder.io/partytown/integration'; import { copyLibFiles, libDirPath } from '@builder.io/partytown/utils'; import type { AstroConfig, AstroIntegration } from 'astro'; +import * as fs from 'fs'; import { createRequire } from 'module'; import path from 'path'; -import * as fs from 'fs'; import { fileURLToPath } from 'url'; import sirv from './sirv.js'; const resolve = createRequire(import.meta.url).resolve; @@ -54,11 +54,11 @@ export default function createPlugin(options: PartytownOptions): AstroIntegratio 'astro:build:ssr': async ({ manifest }) => { const dirpath = libDirPath({ debugDir: false }); const files = await fs.promises.readdir(dirpath); - for(const file of files) { - if(file === 'debug') continue; - manifest.assets.push(`/~partytown/${file}`) + for (const file of files) { + if (file === 'debug') continue; + manifest.assets.push(`/~partytown/${file}`); } - } + }, }, }; } |