Skip to content

Commit 75264bb

Browse files
authored
chore: Update yargs to v18 (#431)
Update dep
1 parent d96e0ef commit 75264bb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"lodash": "^4.11.2",
5555
"node-fetch": "^2.6.0",
5656
"pify": "^5.0.0",
57-
"yargs": "^17.7.2"
57+
"yargs": "^18.0.0"
5858
},
5959
"devDependencies": {
6060
"@eslint/js": "^9.39.2",

src/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env node
22

33
const path = require('path')
4-
const yargs = require('yargs')
4+
const yargs = require('yargs/yargs')
5+
const {hideBin} = require('yargs/helpers')
56
const chalk = require('chalk')
67
const inquirer = require('inquirer')
78

@@ -15,7 +16,7 @@ const cwd = process.cwd()
1516
const defaultRCFile = path.join(cwd, '.all-contributorsrc')
1617

1718
function getArgs() {
18-
return yargs
19+
return yargs(hideBin(process.argv))
1920
.scriptName('all-contributors')
2021
.option('config', {
2122
alias: 'c',

0 commit comments

Comments
 (0)