0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

feat: misc

This commit is contained in:
Florian Lefebvre 2024-08-14 14:53:32 +02:00
parent 23ea79060d
commit a497e4475d
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ export async function syncInternal({
await contentLayer.sync(); await contentLayer.sync();
settings.timer.end('Sync content layer'); settings.timer.end('Sync content layer');
} }
syncAstroEnv(settings, fs); syncAstroEnv(settings);
await writeFiles(settings, fs, logger); await writeFiles(settings, fs, logger);
logger.info('types', `Generated ${dim(getTimeStat(timerStart, performance.now()))}`); logger.info('types', `Generated ${dim(getTimeStat(timerStart, performance.now()))}`);

View file

@ -5,7 +5,7 @@ export const VIRTUAL_MODULES_IDS = {
}; };
export const VIRTUAL_MODULES_IDS_VALUES = new Set(Object.values(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); const PKG_BASE = new URL('../../', import.meta.url);
export const MODULE_TEMPLATE_URL = new URL('templates/env.mjs', PKG_BASE); export const MODULE_TEMPLATE_URL = new URL('templates/env.mjs', PKG_BASE);