From a497e4475dd4dbbd599d6ae503f96e139834d1b8 Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Wed, 14 Aug 2024 14:53:32 +0200 Subject: [PATCH] feat: misc --- packages/astro/src/core/sync/index.ts | 2 +- packages/astro/src/env/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index c9b2ec235b..ee08bcd0df 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -125,7 +125,7 @@ export async function syncInternal({ await contentLayer.sync(); settings.timer.end('Sync content layer'); } - syncAstroEnv(settings, fs); + syncAstroEnv(settings); await writeFiles(settings, fs, logger); logger.info('types', `Generated ${dim(getTimeStat(timerStart, performance.now()))}`); diff --git a/packages/astro/src/env/constants.ts b/packages/astro/src/env/constants.ts index 220f63373c..ac2c2c297f 100644 --- a/packages/astro/src/env/constants.ts +++ b/packages/astro/src/env/constants.ts @@ -5,7 +5,7 @@ export const VIRTUAL_MODULES_IDS = { }; export const VIRTUAL_MODULES_IDS_VALUES = new Set(Object.values(VIRTUAL_MODULES_IDS)); -export const ENV_TYPES_FILE = 'env.d.ts'; +export const ENV_TYPES_FILE = 'astro/env.d.ts'; const PKG_BASE = new URL('../../', import.meta.url); export const MODULE_TEMPLATE_URL = new URL('templates/env.mjs', PKG_BASE);