Only restart when selected paths change.
Section: Watch Mode, Test Runner, and REPL
Watch specific paths
bash
bash
node --watch-path=src --watch-path=config app.jsExplanation
Good for reducing restart noise in larger projects.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Watch Mode, Test Runner, and REPL