You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
watch: print name of changed file that triggers restart - #63781
watch: print name of changed file that triggers restart
When running with --watch, Node now prints which file changed before the restart message, so users can tell which save actually triggered the rebuild.
Now:
Change detected in 'data/preliminary.csv'
Restarting 'src/app.js'
Implementation
FilesWatcher#onChange records the triggering path and includes it on the debounced changed event as trigger.
watch_mode.js prints Change detected in <path> between the screen-clear and the existing Restarting line, so it stays visible and keeps the existing output ordering intact.
Tests in test-watch-mode*.mjs are updated to assert the new line.
watch: print name of changed file that triggers restart
When running with
--watch, Node now prints which file changed before the restart message, so users can tell which save actually triggered the rebuild.Now:
Implementation
FilesWatcher#onChangerecords the triggering path and includes it on the debouncedchangedevent astrigger.watch_mode.jsprintsChange detected in <path>between the screen-clear and the existingRestartingline, so it stays visible and keeps the existing output ordering intact.Tests in
test-watch-mode*.mjsare updated to assert the new line.