From abd289d6e4ec85b47be43b896455700b2cb17d8a Mon Sep 17 00:00:00 2001 From: Dhaval Thakkar <105379072+plumber-dhaval@users.noreply.github.com> Date: Fri, 9 Jun 2023 15:35:12 -0400 Subject: [PATCH] fix turborepo with rollup --watch (#5027) * fix turbo * Fix linter --------- Co-authored-by: Lukas Taegert-Atkinson Co-authored-by: Lukas Taegert-Atkinson --- cli/run/watch-cli.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/run/watch-cli.ts b/cli/run/watch-cli.ts index 987c2f21bdf..db89e003d0f 100644 --- a/cli/run/watch-cli.ts +++ b/cli/run/watch-cli.ts @@ -153,8 +153,7 @@ export async function watch(command: Record): Promise { if (watcher) await watcher.close(); if (configWatcher) configWatcher.close(); - - process.exit(code || 0); + if (code) process.exit(code); } // return a promise that never resolves to keep the process running