mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] yarn format
This commit is contained in:
parent
1d930ffdf4
commit
24d7057dad
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ async function runCommand(rawRoot: string, cmd: (a: AstroConfig, options: any) =
|
||||||
const cmdMap = new Map<string, (a: AstroConfig, opts?: any) => Promise<void>>([
|
const cmdMap = new Map<string, (a: AstroConfig, opts?: any) => Promise<void>>([
|
||||||
['build', buildAndExit],
|
['build', buildAndExit],
|
||||||
['dev', devServer],
|
['dev', devServer],
|
||||||
['reload', reloadAndExit]
|
['reload', reloadAndExit],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/** The primary CLI action */
|
/** The primary CLI action */
|
||||||
|
@ -137,7 +137,7 @@ export async function cli(args: string[]) {
|
||||||
}
|
}
|
||||||
case 'build':
|
case 'build':
|
||||||
case 'dev': {
|
case 'dev': {
|
||||||
if(flags.reload) {
|
if (flags.reload) {
|
||||||
await reload();
|
await reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,4 +15,4 @@ export async function reload() {
|
||||||
} catch {
|
} catch {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue