UNPKG

dave-dredd

Version:
16 lines (15 loc) 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // On Windows, killing stdin / stdout / stderr pipes intentionally // on either side can result `uncaughtException` causing // dredd main process exiting with exitCode 7 instead of 1. This _fix_ // remedies the issue. function ignorePipeErrors(proc) { if (proc.stdout) proc.stdout.on('error', () => { }); if (proc.stderr) proc.stderr.on('error', () => { }); if (proc.stdin) proc.stdin.on('error', () => { }); } exports.default = ignorePipeErrors;