Skip to content

Commit

Permalink
feat: add --iwr alias for --include-workspace-root
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed May 5, 2022
1 parent 8e7ea9b commit e25d72e
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
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
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
Expand Up @@ -61,6 +61,9 @@ Object {
"help": Array [
"--usage",
],
"iwr": Array [
"--include-workspace-root",
],
"l": Array [
"--long",
],
Expand Down

0 comments on commit e25d72e

Please sign in to comment.