svenheden / csharp-models-to-typescript

C# models to TypeScript
88 stars 58 forks source link

Add maxbuffer option #25

Closed DrewRomanyk closed 5 years ago

DrewRomanyk commented 5 years ago

On node v11 I was getting this error:

{ RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
    at Socket.onChildStdout (child_process.js:357:14)
    at Socket.emit (events.js:193:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:273:13)
    at Socket.Readable.push (_stream_readable.js:232:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:150:17)

This allows the config file to set the maxBuffer to be higher to prevent this crash.

svenheden commented 5 years ago

Sorry @DrewRomanyk I closed this PR by accident. But since v0.15.2 that error doesn't exist anymore. Thanks for your contribution!