Skip to content

Commit bcc9cc6

Browse files
committed
fix: Consistent max buffer value across Node versions.
Before Node v12, `maxBuffer` defaulted to 200kb. Node v12+ defaults to 1024kb. Setting the `maxBuffer` value allows for a more consistent cross-version Node experience.
1 parent 7384744 commit bcc9cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/github-lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const path = require('path')
99

1010
function execFile(command, args) {
1111
return new Promise(resolve => {
12-
childProcess.execFile(command, args, (error, stdout, stderr) => {
12+
childProcess.execFile(command, args, {maxBuffer: 1024 ** 2}, (error, stdout, stderr) => {
1313
resolve({code: error ? error.code : 0, stdout, stderr})
1414
})
1515
})

0 commit comments

Comments
 (0)