Skip to content

Commit

Permalink
Return never resolving promise to keep process running
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderdeseyn committed Oct 29, 2020
1 parent 18b8a84 commit 96a6482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ task("watch", "Start the file watcher").setAction(
console.log(`Watcher error: ${error}`);
process.exit(1);
});

return new Promise(() => {});
}
);

0 comments on commit 96a6482

Please sign in to comment.