Skip to content

Commit

Permalink
Update dependency commander to v13 (#40828)
Browse files Browse the repository at this point in the history
* Update dependency commander to v13

* Allow undocumented args for now

* Add comment about why we don't document arguments at the moment

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: tbradsha <32492176+tbradsha@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent 4fe90fa commit 50d9df0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Updated package dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/eslint-changed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"chalk": "5.4.1",
"commander": "9.3.0",
"commander": "13.0.0",
"parse-diff": "0.8.1"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/eslint-changed/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,14 @@ export function createProgram( process = global.process ) {
'Only include messages on lines changed in the diff. This may miss things like deleting a `var` that leads to a new `no-undef` elsewhere.'
)
.option( '--format <name>', 'ESLint format to use for output.', 'stylish' )
// If we uncomment this line, `program` becomes a simple object when passed to main() rather than a `Command` object.
// .argument( '[filenames...]', 'Specified filenames to check.' )
.version( APP_VERSION )
.action( main.bind( program, process ) );

// We should document the optional extra args with `program.argument()` but this doesn't seem to work (see above).
program.allowExcessArguments();

return program;
}

Expand Down

0 comments on commit 50d9df0

Please sign in to comment.