2025-04-02 06:50:39 -04:00

11 lines
262 B
JavaScript

// workaround for tty output truncation upon process.exit()
// https://github.com/nodejs/node/issues/6456
[process.stdout, process.stderr].forEach((s) => {
s &&
s.isTTY &&
s._handle &&
s._handle.setBlocking &&
s._handle.setBlocking(true);
});