Reproducible for nodejs/node#55913.
On Node 22.7 and above, run
node --env-file sub/dev.env --watch-path /usr/local/bin --watch-preserve-output index.js
Run touch sub/test.txt
in a separate console.
- Expected result: it does not restart.
- Actual result: it does restart.