Skip to content

Commit f049333

Browse files
committed
proto-loader: Decrease dependency to yargs 16 for compatibility with Node <12
1 parent f7c2769 commit f049333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/proto-loader/bin/proto-loader-gen-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ async function writeAllFiles(protoFiles: string[], options: GeneratorOptions) {
768768
}
769769

770770
async function runScript() {
771-
const argv = await yargs
771+
const argv = yargs
772772
.parserConfiguration({
773773
'parse-positional-numbers': false
774774
})

packages/proto-loader/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
"lodash.camelcase": "^4.3.0",
5050
"long": "^4.0.0",
5151
"protobufjs": "^6.10.0",
52-
"yargs": "^17.3.1"
52+
"yargs": "^16.2.0"
5353
},
5454
"devDependencies": {
5555
"@types/lodash.camelcase": "^4.3.4",
5656
"@types/mkdirp": "^1.0.1",
5757
"@types/mocha": "^5.2.7",
5858
"@types/node": "^10.17.26",
59-
"@types/yargs": "^17.0.8",
59+
"@types/yargs": "^16.0.4",
6060
"clang-format": "^1.2.2",
6161
"gts": "^1.1.0",
6262
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)