Skip to content

Commit 1445d6e

Browse files
committed
fix: Boolean negation for yargs
1 parent e07b9c6 commit 1445d6e

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@types/tar": "^4.0.0",
6363
"@types/tmp": "^0.0.33",
6464
"@types/update-notifier": "^2.2.0",
65-
"@types/yargs": "^12.0.3",
65+
"@types/yargs": "^15.0.3",
6666
"jest": "^24.8.0",
6767
"npm-run-all": "^4.1.3",
6868
"prettier": "^1.19.1",
@@ -87,9 +87,6 @@
8787
"test:watch": "jest --watch --notify",
8888
"compile-config-schema": "node ./scripts/config-json-schema-to-ts.js"
8989
},
90-
"yargs": {
91-
"boolean-negation": false
92-
},
9390
"volta": {
9491
"node": "8.15.1",
9592
"yarn": "1.14.0"

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function main(): void {
6262

6363
// tslint:disable-next-line:no-unused-expression
6464
yargs
65+
.parserConfiguration({
66+
'boolean-negation': false,
67+
})
6568
.commandDir('commands')
6669
.demandCommand()
6770
.version()

yarn.lock

+11-4
Original file line numberDiff line numberDiff line change
@@ -857,15 +857,22 @@
857857
resolved "https://registry.yarnpkg.com/@types/update-notifier/-/update-notifier-2.5.0.tgz#63cfcee92cc915f9a6eea4d1442ec6efd012e118"
858858
integrity sha512-YV+ZcSIiv30GhLM7WwxI+bsbcW34d3Yhl2JSFBNFL6qtfsoI9++hogxz+jTqeS86ynKcMUE0AsnLWQynfJnsfA==
859859

860+
"@types/yargs-parser@*":
861+
version "15.0.0"
862+
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
863+
integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==
864+
860865
"@types/yargs@^12.0.2", "@types/yargs@^12.0.9":
861866
version "12.0.12"
862867
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.12.tgz#45dd1d0638e8c8f153e87d296907659296873916"
863868
integrity sha512-SOhuU4wNBxhhTHxYaiG5NY4HBhDIDnJF60GU+2LqHAdKKer86//e4yg69aENCtQ04n0ovz+tq2YPME5t5yp4pw==
864869

865-
"@types/yargs@^12.0.3":
866-
version "12.0.4"
867-
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.4.tgz#14a37542f01a1ed4d743d5f8bc3f40e63e5835d4"
868-
integrity sha512-hBYcOaYPnlAPj2OZbivFFzsW61mN0L3N0Aq4KwRt/ZXlw1c25Srj8413MBu5IhFGOyOdjLi2/qOqtStDTXGs9g==
870+
"@types/yargs@^15.0.3":
871+
version "15.0.3"
872+
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.3.tgz#41453a0bc7ab393e995d1f5451455638edbd2baf"
873+
integrity sha512-XCMQRK6kfpNBixHLyHUsGmXrpEmFFxzMrcnSXFMziHd8CoNJo8l16FkHyQq4x+xbM7E2XL83/O78OD8u+iZTdQ==
874+
dependencies:
875+
"@types/yargs-parser" "*"
869876

870877
"@zeus-ci/sdk@^0.1.6":
871878
version "0.1.6"

0 commit comments

Comments
 (0)