Skip to content

Commit 269b15e

Browse files
Bump commander from 12.1.0 to 13.1.0 (#1164)
1 parent 2e6145d commit 269b15e

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

Diff for: bin/analyze-css.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ program
3838
"--auth-pass <pass>",
3939
"Sets the password used for HTTP authentication",
4040
)
41-
.option("-x, --proxy <proxy>", "Sets the HTTP proxy");
41+
.option("-x, --proxy <proxy>", "Sets the HTTP proxy")
42+
// allowExcessArguments is now set to false by default
43+
// we need to let commander know that '-' argument is used to read input from stdin
44+
// https://github.com/tj/commander.js/issues/2149
45+
.argument("[input]", "Pass - as an argument to read CSS from stdin");
4246

4347
// parse it
4448
program.parse(process.argv);

Diff for: package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
],
1919
"license": "BSD-2-Clause",
2020
"engines": {
21-
"node": "^18.0.0"
21+
"node": ">18"
2222
},
2323
"dependencies": {
2424
"cli": "^1.0.1",
25-
"commander": "^12.0.0",
25+
"commander": "^13.1.0",
2626
"css": "^3.0.0",
2727
"css-shorthand-properties": "^1.1.1",
2828
"css-what": "^6.0.1",

0 commit comments

Comments
 (0)