Steps to reproduce:
-
npm ci
-
npm run watch
-
touch foo
-
Observe the incorrect output by tsc:
File change detected. Starting incremental compilation...
-
touch index.ts
-
Observe the correct output by tsc:
File change detected. Starting incremental compilation...
Found 0 errors. Watching for file changes.
-
touch bar.txt
-
Observe that tsc doesn't output anything and ignores the file.