From 661de6e8d7f7f26bf6bf6d1bca356cea99eaef5d Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Wed, 18 Jun 2025 13:35:36 +0800 Subject: [PATCH] refactor: enhance tsc watch script with file touch fallback to prevent watch termination --- 03_source/frontend/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/03_source/frontend/package.json b/03_source/frontend/package.json index 571d49e..cbf7ef9 100644 --- a/03_source/frontend/package.json +++ b/03_source/frontend/package.json @@ -23,7 +23,7 @@ "re:build-npm": "npm run clean && npm install && npm run build", "tsc:dev": "yarn dev & yarn tsc:watch", "tsc:print": "npx tsc --showConfig", - "tsc:w": "npx nodemon --delay 1 --ext ts,tsx --exec \"yarn tsc\"", + "tsc:w": "npx nodemon --delay 1 --ext ts,tsx --exec \"yarn tsc || (sleep 10; touch src/app.tsx)\"", "tsc:watch": "tsc --noEmit --watch", "tsc": "tsc --noEmit" }, @@ -147,4 +147,4 @@ "vite": "^6.2.3", "vite-plugin-checker": "^0.9.1" } -} +} \ No newline at end of file