Skip to content

Commit

Permalink
feat: Upgrade to yargs@14
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Oct 15, 2019
1 parent ac8385d commit 5e60213
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 130 deletions.
3 changes: 3 additions & 0 deletions commands/bootstrap/command.js
Expand Up @@ -15,6 +15,9 @@ exports.builder = yargs => {
"$0 bootstrap -- --no-optional",
"# execute `npm install --no-optional` in bootstrapped packages"
)
.parserConfiguration({
"populate--": true,
})
.options({
hoist: {
group: "Command Options:",
Expand Down
3 changes: 0 additions & 3 deletions commands/bootstrap/package.json
Expand Up @@ -32,9 +32,6 @@
"scripts": {
"test": "echo \"Run tests from root\" && exit 1"
},
"yargs": {
"populate--": true
},
"dependencies": {
"@lerna/command": "file:../../core/command",
"@lerna/filter-options": "file:../../core/filter-options",
Expand Down
3 changes: 3 additions & 0 deletions commands/exec/command.js
Expand Up @@ -13,6 +13,9 @@ exports.builder = yargs => {
yargs
.example("$0 exec ls -- --la", "# execute `ls -la` in all packages")
.example("$0 exec -- ls --la", "# execute `ls -la` in all packages, keeping cmd outside")
.parserConfiguration({
"populate--": true,
})
.positional("cmd", {
describe: "The command to execute. Any command flags must be passed after --",
type: "string",
Expand Down
3 changes: 0 additions & 3 deletions commands/exec/package.json
Expand Up @@ -31,9 +31,6 @@
"scripts": {
"test": "echo \"Run tests from root\" && exit 1"
},
"yargs": {
"populate--": true
},
"dependencies": {
"@lerna/child-process": "file:../../core/child-process",
"@lerna/command": "file:../../core/command",
Expand Down
3 changes: 3 additions & 0 deletions commands/run/command.js
Expand Up @@ -12,6 +12,9 @@ exports.describe = "Run an npm script in each package that contains that script"
exports.builder = yargs => {
yargs
.example("$0 run build -- --silent", "# `npm run build --silent` in all packages with a build script")
.parserConfiguration({
"populate--": true,
})
.positional("script", {
describe: "The npm script to run. Pass flags to send to the npm client after --",
type: "string",
Expand Down
3 changes: 0 additions & 3 deletions commands/run/package.json
Expand Up @@ -31,9 +31,6 @@
"scripts": {
"test": "echo \"Run tests from root\" && exit 1"
},
"yargs": {
"populate--": true
},
"dependencies": {
"@lerna/command": "file:../../core/command",
"@lerna/filter-options": "file:../../core/filter-options",
Expand Down
5 changes: 1 addition & 4 deletions core/cli/package.json
Expand Up @@ -30,13 +30,10 @@
"scripts": {
"test": "echo \"Run tests from root\" && exit 1"
},
"yargs": {
"populate--": true
},
"dependencies": {
"@lerna/global-options": "file:../global-options",
"dedent": "^0.7.0",
"npmlog": "^4.1.2",
"yargs": "^12.0.1"
"yargs": "^14.2.0"
}
}
3 changes: 0 additions & 3 deletions core/lerna/package.json
Expand Up @@ -31,9 +31,6 @@
"scripts": {
"test": "echo \"Run tests from root\" && exit 1"
},
"yargs": {
"populate--": true
},
"dependencies": {
"@lerna/add": "file:../../commands/add",
"@lerna/bootstrap": "file:../../commands/bootstrap",
Expand Down

0 comments on commit 5e60213

Please sign in to comment.