Run a npm script as a deamon, once
npm install onemon> A CLI to help you share a deamon between your scripts
onemon has been created to fill a gap in the complex tooling world of javascript. When you have a monorepo, you may want to share a watcher between all your processes.
Of course you can do this by creating a vscode task like one that will launch tsc --watch in the background but maybe you want something more generic: a task that will launch both an instance of the watcher and your process in the same process.
The problem is if you launch two tasks, you don't want two watchers, so here onemon will help you, it will launch only one deamon and share it between your processes by using sockets to output its stdout.
``sh`
yarn global add onemon
`sh
onemon [deamon-script]