mirror of https://github.com/grpc/grpc-node.git
proto-loader: Fix yargs types
This commit is contained in:
parent
ac86173a20
commit
cf9d0fd4cc
|
@ -678,6 +678,9 @@ async function writeAllFiles(protoFiles: string[], options: GeneratorOptions) {
|
|||
|
||||
function runScript() {
|
||||
const argv = yargs
|
||||
.parserConfiguration({
|
||||
'parse-positional-numbers': false
|
||||
})
|
||||
.string(['includeDirs', 'grpcLib'])
|
||||
.normalize(['includeDirs', 'outDir'])
|
||||
.array('includeDirs')
|
||||
|
@ -731,7 +734,7 @@ function runScript() {
|
|||
console.log('Parsed arguments:', argv);
|
||||
}
|
||||
addCommonProtos();
|
||||
writeAllFiles(argv._, {...argv, alternateCommentMode: true}).then(() => {
|
||||
writeAllFiles(argv._ as string[], {...argv, alternateCommentMode: true}).then(() => {
|
||||
if (argv.verbose) {
|
||||
console.log('Success');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue