From d2447eada852c348fefcd4352002417efef34fa6 Mon Sep 17 00:00:00 2001 From: nikek Date: Thu, 2 Apr 2020 10:46:29 +0200 Subject: [PATCH] fix consistent return from plugin build --- packages/cli/src/commands/plugin/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/plugin/build.ts b/packages/cli/src/commands/plugin/build.ts index 5bb9e171b0..cb28d4cf5f 100644 --- a/packages/cli/src/commands/plugin/build.ts +++ b/packages/cli/src/commands/plugin/build.ts @@ -22,7 +22,7 @@ export default async (cmd: Command) => { if (cmd.watch) { // We're not resolving this promise because watch() doesn't have any exit event. // Instead we just wait until the user sends an interrupt signal. - return new Promise(() => { + await new Promise(() => { const watcher = watch(conf); watcher.on('event', event => { // START — the watcher is (re)starting