diff --git a/packages/cli/common.ts b/packages/cli/common.ts index de39f0a2..3010961b 100644 --- a/packages/cli/common.ts +++ b/packages/cli/common.ts @@ -69,7 +69,7 @@ function formatDescription(arg: Option | Argument): string { type MaybePromise = () => Promise | void; -export async function runCommand(action: MaybePromise) { +export async function runCommand(action: MaybePromise): Promise { try { p.intro(`Welcome to the Svelte CLI! ${pc.gray(`(v${pkg.version})`)}`); await action(); @@ -114,7 +114,7 @@ export async function packageManagerPrompt(cwd: string): Promise { const spinner = p.spinner(); spinner.start('Installing dependencies...'); try {