From 2d3c9df5d7b6de219b5cabe837f663f002589873 Mon Sep 17 00:00:00 2001 From: Azriel Stephen Christian Barla Date: Sun, 20 Oct 2024 20:30:17 +0530 Subject: [PATCH] tsc: add watch mode instruction (#14288) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/tsc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/tsc.md b/pages/common/tsc.md index 47e3197a0..6a1660cdb 100644 --- a/pages/common/tsc.md +++ b/pages/common/tsc.md @@ -26,3 +26,7 @@ - Type-check multiple JavaScript files, and output only the errors: `tsc --allowJs --checkJs --noEmit {{src/**/*.js}}` + +- Run the compiler in watch mode, which automatically recompiles code when it changes: + +`tsc --watch`