diff --git a/packages/astro/src/core/dev/index.ts b/packages/astro/src/core/dev/index.ts index 75a93d0fc..085e5d665 100644 --- a/packages/astro/src/core/dev/index.ts +++ b/packages/astro/src/core/dev/index.ts @@ -50,13 +50,9 @@ export default async function dev(config: AstroConfig, options: DevOptions = { l const currentVersion = process.env.PACKAGE_VERSION ?? '0.0.0'; if (currentVersion.includes('-')) { - warn( - options.logging, - null, - msg.prerelease({ currentVersion }) - ); - } - + warn(options.logging, null, msg.prerelease({ currentVersion })); + } + return { address, stop: () => viteServer.close(), diff --git a/packages/astro/src/core/messages.ts b/packages/astro/src/core/messages.ts index 6eec538ea..a538e7bbb 100644 --- a/packages/astro/src/core/messages.ts +++ b/packages/astro/src/core/messages.ts @@ -62,7 +62,7 @@ export function prerelease({ currentVersion }: { currentVersion: string }) { const tag = currentVersion.split('-').slice(1).join('-').replace(/\..*$/, ''); const badge = bgYellow(black(` ${tag} `)); const headline = yellow(`▶ This is a ${badge} prerelease build`); - const warning = ` Feedback? ${underline('https://astro.build/issues')}` + const warning = ` Feedback? ${underline('https://astro.build/issues')}`; return [headline, warning, ''].map((msg) => ` ${msg}`).join('\n'); }