From 86515f445e821f3733c9b27eef23b2765faa292b Mon Sep 17 00:00:00 2001 From: Florian Lefebvre <florian-lefebvre@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:52:47 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/sync/index.ts | 2 +- packages/astro/src/env/sync.ts | 4 ++-- packages/astro/src/env/vite-plugin-env.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index 0649f07b57..1e43884ac0 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -7,6 +7,7 @@ import type { AstroConfig, AstroInlineConfig, AstroSettings } from '../../@types import { getPackage } from '../../cli/install-package.js'; import { createContentTypesGenerator } from '../../content/index.js'; import { globalContentConfigObserver } from '../../content/utils.js'; +import { syncAstroEnv } from '../../env/sync.js'; import { telemetry } from '../../events/index.js'; import { eventCliSession } from '../../events/session.js'; import { runHookConfigSetup } from '../../integrations/hooks.js'; @@ -27,7 +28,6 @@ import { import type { Logger } from '../logger/core.js'; import { formatErrorMessage } from '../messages.js'; import { ensureProcessNodeEnv } from '../util.js'; -import { syncAstroEnv } from '../../env/sync.js'; export type ProcessExit = 0 | 1; diff --git a/packages/astro/src/env/sync.ts b/packages/astro/src/env/sync.ts index eb7cc939e0..9ba11469ad 100644 --- a/packages/astro/src/env/sync.ts +++ b/packages/astro/src/env/sync.ts @@ -1,7 +1,7 @@ -import type { AstroSettings } from '../@types/astro.js'; import fsMod from 'node:fs'; -import { getEnvFieldType } from './validators.js'; +import type { AstroSettings } from '../@types/astro.js'; import { ENV_TYPES_FILE, TYPES_TEMPLATE_URL } from './constants.js'; +import { getEnvFieldType } from './validators.js'; export function syncAstroEnv(settings: AstroSettings, fs = fsMod) { if (!settings.config.experimental.env) { diff --git a/packages/astro/src/env/vite-plugin-env.ts b/packages/astro/src/env/vite-plugin-env.ts index 92e5cea6d7..3b08d8c2ed 100644 --- a/packages/astro/src/env/vite-plugin-env.ts +++ b/packages/astro/src/env/vite-plugin-env.ts @@ -1,6 +1,6 @@ import type fsMod from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { loadEnv, type Plugin } from 'vite'; +import { type Plugin, loadEnv } from 'vite'; import type { AstroSettings } from '../@types/astro.js'; import { AstroError, AstroErrorData } from '../core/errors/index.js'; import {