protobuf.js version: 6.3.0
I have 70 proto-files in my project and I have generated static module with pbjs successfully:
node_modules/protobufjs/bin/pbjs -p ./proto -o protoclasses.js -t static-module ./proto/**/*.proto
Then I'd like to produce typescript definitions for module:
node_modules/protobufjs/bin/pbts -o protoclasses.d.ts protoclasses.js
The pbts exits successfully, but resulting protoclasses.d.ts is broken - it's content is cutted to 200kb.
In the sources, pbts starts child process jsdoc and puts it's stdout to resulting file. NodeJS will cut stdout because of default buffer capacity is 200 kb.
I found this answer on stackoverflow useful to workaround this bug.
If I've add maxBuffer option with high value, output will not be cutted:
var child = child_process.exec("node \"" + basedir + "/node_modules/jsdoc/jsdoc.js\" -c \"" + basedir + "/jsdoc.types.json\" -q \"module=" + encodeURIComponent(moduleName) + "\" " + files.map(function(file) { return '"' + file + '"'; }).join(' '), {
cwd: process.cwd(),
argv0: "node",
stdio: "pipe",
maxBuffer: 1024*1024*1024
});
Will you fix this?
Which is reasonable value in your opinion?
In my case the resulting protoclasses.d.ts has 1.1mb size, it is sad that I cannot remove jsdoc comments in generated typescript definitions.
Cheers, halex2005.
protobuf.js version: 6.3.0
I have 70 proto-files in my project and I have generated static module with pbjs successfully:
Then I'd like to produce typescript definitions for module:
The
pbtsexits successfully, but resultingprotoclasses.d.tsis broken - it's content is cutted to 200kb.In the sources,
pbtsstarts child processjsdocand puts it's stdout to resulting file. NodeJS will cut stdout because of default buffer capacity is 200 kb.I found this answer on stackoverflow useful to workaround this bug.
If I've add maxBuffer option with high value, output will not be cutted:
Will you fix this?
Which is reasonable value in your opinion?
In my case the resulting
protoclasses.d.tshas 1.1mb size, it is sad that I cannot remove jsdoc comments in generated typescript definitions.Cheers, halex2005.