Would you mind returning the watcher object (https://github.com/yan-foto/electron-reload/blob/master/main.js#L48) from elecronReload() (https://github.com/yan-foto/electron-reload/blob/master/main.js#L46) at the end of function?
I need to close the watcher in the (will-)quit event of an electron application to prevent a crash on exit on MacOS.