fix consistent return from plugin build

This commit is contained in:
nikek
2020-04-02 10:46:29 +02:00
parent 43f37a53a0
commit d2447eada8
+1 -1
View File
@@ -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