nodemon restart after file deletion does not restore application state
When nodemon detects a deletion of a watched file, it emits a restart event and spawns a new child process, but it does not provide a mechanism to run any user‑defined logic before that restart. The goal is to ensure that critical application state can be verified or restored from a backup before the process is restarted, without having to modify nodemon’s s