Skip to content

Commit 911f55d

Browse files
authored
feat: add --iwr alias for --include-workspace-root (#4864)
1 parent 5baa4a7 commit 911f55d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docs/content/using-npm/config.md

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The following shorthands are parsed on the command-line:
6868
* `--desc`: `--description`
6969
* `-f`: `--force`
7070
* `-g`: `--global`
71+
* `--iwr`: `--include-workspace-root`
7172
* `-L`: `--location`
7273
* `-d`: `--loglevel info`
7374
* `-s`: `--loglevel silent`

lib/utils/config/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const shorthands = {
2525
porcelain: ['--parseable'],
2626
readonly: ['--read-only'],
2727
reg: ['--registry'],
28+
iwr: ['--include-workspace-root'],
2829
}
2930

3031
for (const [key, { short }] of Object.entries(definitions)) {

tap-snapshots/test/lib/utils/config/index.js.test.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Object {
6161
"help": Array [
6262
"--usage",
6363
],
64+
"iwr": Array [
65+
"--include-workspace-root",
66+
],
6467
"l": Array [
6568
"--long",
6669
],

0 commit comments

Comments
 (0)