When I set a npm script npm run build in a standard-version life cycle such as prerelease:
"standard-version": {
"scripts": {
"prerelease": "npm run build"
}
}
And an error happened:
stderr maxBuffer length exceeded
In standard-version/lib/run-exec.js, using child_process.exec to run the commands in life cycles, and child_process.exec's maxBuffer is 200 * 1024 by default.
So can we use child_process.spawn or set a larger buffer size to avoid this probem?
When I set a
npm
scriptnpm run build
in astandard-version
life cycle such asprerelease
:And an error happened:
stderr maxBuffer length exceeded
In
standard-version/lib/run-exec.js
, usingchild_process.exec
to run the commands in life cycles, andchild_process.exec
's maxBuffer is 200 * 1024 by default.So can we use
child_process.spawn
or set a larger buffer size to avoid this probem?Thanks.