Skip to content

Commit

Permalink
feat: add --iwr alias for --include-workspace-root (#4864)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy authored May 9, 2022
1 parent 5baa4a7 commit 911f55d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following shorthands are parsed on the command-line:
* `--desc`: `--description`
* `-f`: `--force`
* `-g`: `--global`
* `--iwr`: `--include-workspace-root`
* `-L`: `--location`
* `-d`: `--loglevel info`
* `-s`: `--loglevel silent`
Expand Down
1 change: 1 addition & 0 deletions lib/utils/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const shorthands = {
porcelain: ['--parseable'],
readonly: ['--read-only'],
reg: ['--registry'],
iwr: ['--include-workspace-root'],
}

for (const [key, { short }] of Object.entries(definitions)) {
Expand Down
3 changes: 3 additions & 0 deletions tap-snapshots/test/lib/utils/config/index.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Object {
"help": Array [
"--usage",
],
"iwr": Array [
"--include-workspace-root",
],
"l": Array [
"--long",
],
Expand Down

0 comments on commit 911f55d

Please sign in to comment.