From e75d2566e1db7c98d100add32ca6473f043b1fc2 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Wed, 9 Sep 2020 16:25:17 -0600 Subject: [PATCH] Remove workaround for yargs/yargs#783 This hasn't been an issue since yargs@15.0.0 dropped support for package.json-based parserConfiguration. Signed-off-by: Kevin Locke --- bin/cmd.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index 15164fd..fde7954 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -65,10 +65,7 @@ function modulenameCmd(args, options, callback) { args = []; } - // Workaround for https://github.com/yargs/yargs/issues/783 - // Necessary because mocha package.json overrides .parserConfiguration() - require.main = module; - const yargs = new Yargs(undefined, undefined, require) + const yargs = new Yargs() .parserConfiguration({ 'parse-numbers': false, 'duplicate-arguments-array': false,