Skip to content

Commit 7f9d8f9

Browse files
renovate[bot]renovate-botFeiyang1
authored
Update dependency yargs to v17 (#5415)
* Update dependency yargs to v17 * update yargs Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Feiyang1 <[email protected]>
1 parent 1271c9c commit 7f9d8f9

File tree

14 files changed

+33
-18
lines changed

14 files changed

+33
-18
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"@types/sinon": "9.0.10",
8282
"@types/sinon-chai": "3.2.5",
8383
"@types/tmp": "0.2.0",
84-
"@types/yargs": "16.0.0",
84+
"@types/yargs": "17.0.2",
8585
"@types/js-yaml": "4.0.0",
8686
"@types/request": "2.48.7",
8787
"@typescript-eslint/eslint-plugin": "4.28.0",
@@ -154,7 +154,7 @@
154154
"typescript": "4.2.2",
155155
"watch": "1.0.2",
156156
"webpack": "4.46.0",
157-
"yargs": "16.2.0"
157+
"yargs": "17.1.1"
158158
},
159159
"husky": {
160160
"hooks": {

packages/auth-compat/scripts/run_node_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const argv = yargs.options({
2727
webdriver: {
2828
type: 'boolean'
2929
}
30-
}).argv;
30+
}).parseSync();
3131

3232
const nyc = resolve(__dirname, '../../../node_modules/.bin/nyc');
3333
const mocha = resolve(__dirname, '../../../node_modules/.bin/mocha');

packages/auth/scripts/run_node_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const argv = yargs.options({
3030
webdriver: {
3131
type: 'boolean'
3232
}
33-
}).argv;
33+
}).parseSync();
3434

3535
const nyc = resolve(__dirname, '../../../node_modules/.bin/nyc');
3636
const mocha = resolve(__dirname, '../../../node_modules/.bin/mocha');

packages/firestore/scripts/build-bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const argv = yargs.options({
3535
demandOption: true,
3636
desc: 'The location for the transpiled JavaScript bundle'
3737
}
38-
}).argv;
38+
}).parseSync();
3939

4040
/**
4141
* Builds an ESM bundle for the Typescript file at `index` and writes it the

packages/firestore/scripts/run-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const argv = yargs.options({
3535
persistence: {
3636
type: 'boolean'
3737
}
38-
}).argv;
38+
}).parseSync();
3939

4040
const nyc = resolve(__dirname, '../../../node_modules/.bin/nyc');
4141
const mocha = resolve(__dirname, '../../../node_modules/.bin/mocha');

repo-scripts/prune-dts/extract-public-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const argv = yargs.options({
216216
'includes the public APIs',
217217
require: true
218218
}
219-
}).argv;
219+
}).parseSync();
220220

221221
void generateApi(
222222
argv.package,

repo-scripts/prune-dts/prune-dts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ const argv = yargs.options({
529529
type: 'string',
530530
desc: 'The location for the index.d.ts file'
531531
}
532-
}).argv;
532+
}).parseSync();
533533

534534
if (argv.input && argv.output) {
535535
console.log('Removing private exports...');

repo-scripts/size-analysis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"tmp": "0.2.1",
3535
"typescript": "4.2.2",
3636
"terser": "5.7.0",
37-
"yargs": "16.2.0",
37+
"yargs": "17.1.1",
3838
"@firebase/util": "1.3.0",
3939
"gzip-size": "6.0.0",
4040
"glob": "7.1.6"

scripts/build/create-overloads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const argv = yargs
5555
};
5656
});
5757
})
58-
.help().argv;
58+
.help().parseSync();
5959

6060
interface Options {
6161
input: string;

scripts/ci-test/build_changed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const argv = yargs.options({
2828
type: 'boolean',
2929
desc: 'if true, build all packages. Used in Test Auth workflow because Auth tests depends on the firebase package'
3030
}
31-
}).argv;
31+
}).parseSync();
3232

3333
const allTestConfigNames = Object.keys(testConfig);
3434
const inputTestConfigName = argv._[0].toString();

scripts/ci-test/test_changed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ import { resolve } from 'path';
1919
import { spawn } from 'child-process-promise';
2020
import { TestReason, filterTasks, getTestTasks, logTasks } from './tasks';
2121
import chalk from 'chalk';
22-
import { argv } from 'yargs';
22+
import * as yargs from 'yargs';
2323
import { TestConfig, testConfig } from './testConfig';
2424
const root = resolve(__dirname, '../..');
2525

26+
const argv = yargs.parseSync();
2627
const inputTestConfigName = argv._[0].toString();
2728
const testCommand = 'test:ci';
2829

scripts/extract-deps/extract-deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const argv = yargs.options({
4646
demandOption: true,
4747
desc: 'The location to write the JSON output to'
4848
}
49-
}).argv;
49+
}).parseSync();
5050

5151
async function buildJson(
5252
publicApi: MemberList,

scripts/update-internal-dep-versions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727

2828
import { projectRoot } from './utils';
2929
import { mapPkgNameToPkgJson } from './release/utils/workspace';
30-
import { argv } from 'yargs';
30+
import * as yargs from 'yargs';
3131
import fs from 'mz/fs';
3232

33+
const argv = yargs.parseSync();
3334
async function updateField(pkg: any, fieldName: string) {
3435
const field = pkg[fieldName];
3536
for (const depName in field) {

yarn.lock

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3168,10 +3168,10 @@
31683168
resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9"
31693169
integrity sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==
31703170

3171-
"@types/yargs@16.0.0":
3172-
version "16.0.0"
3173-
resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.0.tgz#0e033b23452da5d61b6c44747612cb80ac528751"
3174-
integrity sha512-2nN6AGeMwe8+O6nO9ytQfbMQOJy65oi1yK2y/9oReR08DaXSGtMsrLyCM1ooKqfICpCx4oITaR4LkOmdzz41Ww==
3171+
"@types/yargs@17.0.2":
3172+
version "17.0.2"
3173+
resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.2.tgz#8fb2e0f4cdc7ab2a1a570106e56533f31225b584"
3174+
integrity sha512-JhZ+pNdKMfB0rXauaDlrIvm+U7V4m03PPOSVoPS66z8gf+G4Z/UW8UlrVIj2MRQOBzuoEvYtjS0bqYwnpZaS9Q==
31753175
dependencies:
31763176
"@types/yargs-parser" "*"
31773177

@@ -16963,6 +16963,19 @@ [email protected], yargs@^16.0.3, yargs@^16.1.1, yargs@^16.2.0:
1696316963
y18n "^5.0.5"
1696416964
yargs-parser "^20.2.2"
1696516965

16966+
16967+
version "17.1.1"
16968+
resolved "https://registry.npmjs.org/yargs/-/yargs-17.1.1.tgz#c2a8091564bdb196f7c0a67c1d12e5b85b8067ba"
16969+
integrity sha512-c2k48R0PwKIqKhPMWjeiF6y2xY/gPMUlro0sgxqXpbOIohWiLNXWslsootttv7E1e73QPAMQSg5FeySbVcpsPQ==
16970+
dependencies:
16971+
cliui "^7.0.2"
16972+
escalade "^3.1.1"
16973+
get-caller-file "^2.0.5"
16974+
require-directory "^2.1.1"
16975+
string-width "^4.2.0"
16976+
y18n "^5.0.5"
16977+
yargs-parser "^20.2.2"
16978+
1696616979
yargs@^15.0.2, yargs@^15.1.0:
1696716980
version "15.4.1"
1696816981
resolved "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8"

0 commit comments

Comments
 (0)