From 1cb7b88505f2c54557d1e18975b2b7d76cb1021b Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 23 Mar 2020 07:29:48 -0700 Subject: [PATCH] fix(dev-infra): change circular deps positional params to camelCase (#36165) Changes the positional params for the circular deps tooling to use camelCase as it requires being defined in camelCase while in strict mode. Additionally, remove the `version()` call as the boolean arguement does not exist in current versions and throws errors on execution. PR Close #36165 --- dev-infra/ts-circular-dependencies/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-infra/ts-circular-dependencies/index.ts b/dev-infra/ts-circular-dependencies/index.ts index 9dc9879c37..f55d8be5c0 100644 --- a/dev-infra/ts-circular-dependencies/index.ts +++ b/dev-infra/ts-circular-dependencies/index.ts @@ -29,10 +29,9 @@ const defaultGlob = if (require.main === module) { const {_: command, goldenFile, glob, baseDir, warnings} = yargs.help() - .version(false) .strict() - .command('check ', 'Checks if the circular dependencies have changed.') - .command('approve ', 'Approves the current circular dependencies.') + .command('check ', 'Checks if the circular dependencies have changed.') + .command('approve ', 'Approves the current circular dependencies.') .demandCommand() .option( 'approve',