With the work we have done so far, after each and every change, running our updated Node code would require that we perform the following:
- Stop the current version of the code, if it's still running.
- Rerun the build process to update the out directory.
- Run the new version of the code.
Doing all of this, for every single small change, can quickly become boring and tiresome. But, there is a solution: we can install a watcher, that will monitor our files for changes and do everything mentioned here by itself, freeing us from the repetitive chore. Let's then see how we can set a tool to watch out for changes, and do all the steps shown on its own.