diff --git a/packages/astro/src/cli.ts b/packages/astro/src/cli.ts index 894db3a66..3016e49c7 100644 --- a/packages/astro/src/cli.ts +++ b/packages/astro/src/cli.ts @@ -112,7 +112,7 @@ async function runCommand(rawRoot: string, cmd: (a: AstroConfig, options: any) = const cmdMap = new Map Promise>([ ['build', buildAndExit], ['dev', devServer], - ['reload', reloadAndExit] + ['reload', reloadAndExit], ]); /** The primary CLI action */ @@ -137,7 +137,7 @@ export async function cli(args: string[]) { } case 'build': case 'dev': { - if(flags.reload) { + if (flags.reload) { await reload(); } diff --git a/packages/astro/src/reload.ts b/packages/astro/src/reload.ts index a82d66c95..71d39ba95 100644 --- a/packages/astro/src/reload.ts +++ b/packages/astro/src/reload.ts @@ -15,4 +15,4 @@ export async function reload() { } catch { return 1; } -} \ No newline at end of file +}