move TTY workaround to CLI
This commit is contained in:
parent
a70e9b096c
commit
c14ff76eed
|
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
// workaround for tty output truncation upon process.exit()
|
||||||
|
[process.stdout, process.stderr].forEach(function(stream){
|
||||||
|
if (stream._handle && stream._handle.setBlocking)
|
||||||
|
stream._handle.setBlocking(true);
|
||||||
|
});
|
||||||
|
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var info = require("../package.json");
|
var info = require("../package.json");
|
||||||
var path = require("path");
|
var path = require("path");
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,3 @@
|
||||||
// workaround for tty output truncation upon process.exit()
|
|
||||||
[process.stdout, process.stderr].forEach(function(stream){
|
|
||||||
if (stream._handle && stream._handle.setBlocking)
|
|
||||||
stream._handle.setBlocking(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
|
|
||||||
var UglifyJS = exports;
|
var UglifyJS = exports;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user