don't process.exit() in worker mode
don't process.exit() in worker mode

Node already knows to exit when all the inputs close.

For example if you run this program and type at it:

process.stdin.on('readable', () => {
  console.log('got chunk', process.stdin.read());
});

when stdin closes the program exits.

PiperOrigin-RevId: 189221115

bazelbuild/rules_typescript,bazelbuild/rules_typescript,bazelbuild/rules_typescript