Skip to content

Commit 096779b

Browse files
jlopezxsmysticatea
authored andcommitted
Fix: --aggregate-output cannot handle large data (fixes #111)(#112)
1 parent 6ef64ab commit 096779b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/run-tasks.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Requirements
1111
//------------------------------------------------------------------------------
1212

13-
const streams = require("memory-streams")
13+
const MemoryStream = require("memorystream")
1414
const NpmRunAllError = require("./npm-run-all-error")
1515
const runTask = require("./run-task")
1616

@@ -110,7 +110,9 @@ module.exports = function runTasks(tasks, options) {
110110

111111
const originalOutputStream = options.stdout
112112
const optionsClone = Object.assign({}, options)
113-
const writer = new streams.WritableStream()
113+
const writer = new MemoryStream(null, {
114+
readable: false,
115+
})
114116

115117
if (options.aggregateOutput) {
116118
optionsClone.stdout = writer

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"ansi-styles": "^3.2.0",
3333
"chalk": "^2.1.0",
3434
"cross-spawn": "^5.1.0",
35-
"memory-streams": "^0.1.2",
35+
"memorystream": "^0.3.1",
3636
"minimatch": "^3.0.4",
3737
"ps-tree": "^1.1.0",
3838
"read-pkg": "^2.0.0",

0 commit comments

Comments
 (0)