When I execute tsc --noEmit --incremental
, it takes approximately 17 seconds to complete. To improve the speed, tsc provides watch mode which now only takes around 2 seconds.
This is my current script:
// type checking
tsc --noEmit --incremental
// build
node ./build-with-esbuild.js
The build script itself has its own watcher. How can I incorporate tsc --watch
with my build script?