From 0851e6aacdf8197b20761b4cf2a81f96130b6ff6 Mon Sep 17 00:00:00 2001
From: Alex Gherghisan <alexg@aztecprotocol.com>
Date: Tue, 23 Apr 2024 11:44:29 +0000
Subject: [PATCH] chore: yarn build:dev don't clear terminal

---
 yarn-project/watch.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yarn-project/watch.sh b/yarn-project/watch.sh
index 88cf51e6b60..d52f682f692 100755
--- a/yarn-project/watch.sh
+++ b/yarn-project/watch.sh
@@ -13,7 +13,7 @@ debounce() {
   local run_id=$(uuidgen)
   echo "$run_id" > ".debounce-$group_id"
   (
-    sleep $DEBOUNCE_DURATION; 
+    sleep $DEBOUNCE_DURATION;
     local current_id=$(cat ".debounce-$group_id");
     if [ "$run_id" = "${current_id}" ]; then
       "$@"
@@ -24,7 +24,7 @@ debounce() {
 # Start typescript watch process in the background and store process ID in a file
 start_tsc_watch() {
   local tsc_bin=$(yarn bin tsc)
-  $tsc_bin -b tsconfig.json --watch &
+  $tsc_bin -b tsconfig.json --watch --preserveWatchOutput &
   TSC_PID=$!
   echo "$TSC_PID" > .tsc.pid
 }