Skip to content

Commit eff181e

Browse files
committed
update yargs
1 parent 9ac3396 commit eff181e

File tree

11 files changed

+13
-11
lines changed

11 files changed

+13
-11
lines changed

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...');

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) {

0 commit comments

Comments
 (0)