diff options
author | 2022-03-10 23:26:18 +0000 | |
---|---|---|
committer | 2022-03-10 23:26:18 +0000 | |
commit | a940354b38ac62ca8cbd133591962c1a60b1fcc4 (patch) | |
tree | aa5d303c3bff9211bf72cc33d034cbda97fa378f | |
parent | 499fb6a3356967123a7cb9b28f94d9a3bf1dff91 (diff) | |
download | astro-a940354b38ac62ca8cbd133591962c1a60b1fcc4.tar.gz astro-a940354b38ac62ca8cbd133591962c1a60b1fcc4.tar.zst astro-a940354b38ac62ca8cbd133591962c1a60b1fcc4.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/dev/index.ts | 10 | ||||
-rw-r--r-- | packages/astro/src/core/messages.ts | 2 |
2 files changed, 4 insertions, 8 deletions
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'); } |