trentm/node-bunyan

Issues running with nodemon

seranotannason opened this issue · 0 comments

I ran the command nodemon . | bunyan and both components work fine, but this produces an error when I exit:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! d@1.0.0-oas3 dev: `nodemon src/bin/www | bunyan`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the d@1.0.0-oas3 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I suspect it's because bunyan is not killed cleanly every time nodemon restarts. Is there a better way of piping nodemon to bunyan?