Skip to content

Commit e65bd52

Browse files
committed
Incrase stderr buffer size for output
1 parent 952dc14 commit e65bd52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/shellUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { exec, ExecOptions } from "child_process";
22

3+
const TEN_MEGA_BYTE = 1024 * 1024 * 10;
4+
35
export const execute = async (cmd: string, cwd?: string) => {
46
const options: ExecOptions = {};
57
options.cwd = cwd;
8+
options.maxBuffer = TEN_MEGA_BYTE;
69

710
return new Promise((resolve, reject) => {
811
exec(cmd, options, (err, stdout, stderr) => {

0 commit comments

Comments
 (0)