diff options
author | 2024-08-02 12:20:29 +0000 | |
---|---|---|
committer | 2024-08-02 12:20:29 +0000 | |
commit | d052428e381fccaf6499aae957f2b650c999d66f (patch) | |
tree | 2ccfd9418a4107658fb8ad5c9ca97c60265be1b8 | |
parent | 69d54b4bf26b1c738ea2342da7abe998baeafaee (diff) | |
download | astro-d052428e381fccaf6499aae957f2b650c999d66f.tar.gz astro-d052428e381fccaf6499aae957f2b650c999d66f.tar.zst astro-d052428e381fccaf6499aae957f2b650c999d66f.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/build/internal.ts | 5 | ||||
-rw-r--r-- | packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/core-image.test.js | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/packages/astro/src/core/build/internal.ts b/packages/astro/src/core/build/internal.ts index 54df70516..efab9baca 100644 --- a/packages/astro/src/core/build/internal.ts +++ b/packages/astro/src/core/build/internal.ts @@ -252,10 +252,7 @@ export function getPageData( * @param internals Build Internals with all the pages * @param component path to the component, used to identify related pages */ -function getPagesDatasByComponent( - internals: BuildInternals, - component: string -): PageBuildData[] { +function getPagesDatasByComponent(internals: BuildInternals, component: string): PageBuildData[] { const pageDatas: PageBuildData[] = []; internals.pagesByKeys.forEach((pageData) => { if (component === pageData.component) pageDatas.push(pageData); diff --git a/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts b/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts index fb6ccadd1..7d31aed63 100644 --- a/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts +++ b/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts @@ -1,4 +1,4 @@ -import type { BuildOptions, Plugin as VitePlugin, Rollup } from 'vite'; +import type { BuildOptions, Rollup, Plugin as VitePlugin } from 'vite'; import type { AstroSettings } from '../../../@types/astro.js'; import { viteID } from '../../util.js'; import type { BuildInternals } from '../internal.js'; diff --git a/packages/astro/test/core-image.test.js b/packages/astro/test/core-image.test.js index aa6e30818..2943f3177 100644 --- a/packages/astro/test/core-image.test.js +++ b/packages/astro/test/core-image.test.js @@ -2,9 +2,9 @@ import assert from 'node:assert/strict'; import { basename } from 'node:path'; import { Writable } from 'node:stream'; import { after, before, describe, it } from 'node:test'; +import { removeDir } from '@astrojs/internal-helpers/fs'; import * as cheerio from 'cheerio'; import parseSrcset from 'parse-srcset'; -import { removeDir } from '@astrojs/internal-helpers/fs'; import { Logger } from '../dist/core/logger/core.js'; import testAdapter from './test-adapter.js'; import { testImageService } from './test-image-service.js'; |