[ci] format

This commit is contained in:
natemoo-re 2022-03-10 23:26:18 +00:00 committed by GitHub Actions
parent 499fb6a335
commit a940354b38
2 changed files with 4 additions and 8 deletions

View file

@ -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(),

View file

@ -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');
}