refactor: enhance tsc watch script with file touch fallback to prevent watch termination
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
"re:build-npm": "npm run clean && npm install && npm run build",
|
"re:build-npm": "npm run clean && npm install && npm run build",
|
||||||
"tsc:dev": "yarn dev & yarn tsc:watch",
|
"tsc:dev": "yarn dev & yarn tsc:watch",
|
||||||
"tsc:print": "npx tsc --showConfig",
|
"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:watch": "tsc --noEmit --watch",
|
||||||
"tsc": "tsc --noEmit"
|
"tsc": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
@@ -147,4 +147,4 @@
|
|||||||
"vite": "^6.2.3",
|
"vite": "^6.2.3",
|
||||||
"vite-plugin-checker": "^0.9.1"
|
"vite-plugin-checker": "^0.9.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user