Skip to content

Commit

Permalink
Remove workaround for yargs/yargs#783
Browse files Browse the repository at this point in the history
This hasn't been an issue since yargs@15.0.0 dropped support for
package.json-based parserConfiguration.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Sep 9, 2020
1 parent 3e0f511 commit e75d256
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/cmd.js
Expand Up @@ -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,
Expand Down

0 comments on commit e75d256

Please sign in to comment.