[ci] format
This commit is contained in:
parent
499fb6a335
commit
a940354b38
2 changed files with 4 additions and 8 deletions
|
@ -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(),
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue