npm-run-all icon indicating copy to clipboard operation
npm-run-all copied to clipboard

process exits before output emitted

Open ezpuzz opened this issue 6 years ago • 1 comments

I'm running some linting and tests in a docker container with npm-run-all -pn --silent --aggregate-output lint:* test

The output is as I expect except that it cuts off early because the npm-run-all process exits before all the output has fully been written to stdout. This cuts off the test results.

workaround: run without aggregate-output, output is as expected but interleaved.

I guess this only happens when the size of output is large.

ezpuzz avatar Jan 25 '19 22:01 ezpuzz

https://github.com/mysticatea/npm-run-all/blob/52eaf86242ba408dedd015f53ca7ca368f25a026/lib/run-tasks.js#L133

need to wait for output to be flushed here

ezpuzz avatar Jan 25 '19 22:01 ezpuzz