From 2a13e430b1d66dd89a2326c16a6c2877e83c2da4 Mon Sep 17 00:00:00 2001 From: tony-sull Date: Mon, 25 Jul 2022 21:16:11 +0000 Subject: [PATCH] [ci] format --- packages/integrations/image/src/build/ssr.ts | 2 +- packages/integrations/image/src/utils/metadata.ts | 2 +- packages/integrations/image/src/vite-plugin-astro-image.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/image/src/build/ssr.ts b/packages/integrations/image/src/build/ssr.ts index 7108962a42dc..e8de6ae3c710 100644 --- a/packages/integrations/image/src/build/ssr.ts +++ b/packages/integrations/image/src/build/ssr.ts @@ -1,7 +1,7 @@ import fs from 'node:fs/promises'; import path from 'node:path'; -import glob from 'tiny-glob'; import { fileURLToPath } from 'node:url'; +import glob from 'tiny-glob'; import { ensureDir } from '../utils/paths.js'; async function globImages(dir: URL) { diff --git a/packages/integrations/image/src/utils/metadata.ts b/packages/integrations/image/src/utils/metadata.ts index 9df87b7c8410..fa60281b6892 100644 --- a/packages/integrations/image/src/utils/metadata.ts +++ b/packages/integrations/image/src/utils/metadata.ts @@ -1,5 +1,5 @@ -import fs from 'node:fs/promises'; import sizeOf from 'image-size'; +import fs from 'node:fs/promises'; import { ImageMetadata, InputFormat } from '../types.js'; export async function metadata(src: string): Promise { diff --git a/packages/integrations/image/src/vite-plugin-astro-image.ts b/packages/integrations/image/src/vite-plugin-astro-image.ts index 0f3c8398cefb..81593c142aed 100644 --- a/packages/integrations/image/src/vite-plugin-astro-image.ts +++ b/packages/integrations/image/src/vite-plugin-astro-image.ts @@ -1,7 +1,7 @@ import type { AstroConfig } from 'astro'; +import { pathToFileURL } from 'node:url'; import type { PluginContext } from 'rollup'; import slash from 'slash'; -import { pathToFileURL } from 'node:url'; import type { Plugin, ResolvedConfig } from 'vite'; import type { IntegrationOptions } from './types.js'; import { metadata } from './utils/metadata.js';