Skip to content

Commit

Permalink
fix: increase buffer size to 5MB when running CLI commands (#62)
Browse files Browse the repository at this point in the history
Some decaffeinate runs had more than 200KB of stdout, which gave an error
message.
  • Loading branch information
alangpierce authored Dec 19, 2016
1 parent 58383e1 commit 682d94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner/makeCLIFn.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { exec } from 'mz/child_process';
export default function makeCLIFn(commandByPath) {
return async function(path) {
try {
await exec(commandByPath(path));
await exec(commandByPath(path), {maxBuffer: 5 * 1024 * 1024});
return {path, error: null};
} catch (e) {
return {path, error: e.message};
Expand Down

0 comments on commit 682d94d

Please sign in to comment.