Skip to content

Commit cd1e6aa

Browse files
authoredJun 14, 2023
docs: add flag package-lock-only for npm install (#6551)
1 parent 40d7e09 commit cd1e6aa

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
 

‎lib/commands/install.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Install extends ArboristWorkspaceCmd {
2727
'strict-peer-deps',
2828
'prefer-dedupe',
2929
'package-lock',
30+
'package-lock-only',
3031
'foreground-scripts',
3132
'ignore-scripts',
3233
'audit',

‎tap-snapshots/test/lib/docs.js.test.cjs

+8-4
Original file line numberDiff line numberDiff line change
@@ -3202,8 +3202,9 @@ Options:
32023202
[-E|--save-exact] [-g|--global]
32033203
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
32043204
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
3205-
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--foreground-scripts]
3206-
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
3205+
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--package-lock-only]
3206+
[--foreground-scripts] [--ignore-scripts] [--no-audit] [--no-bin-links]
3207+
[--no-fund] [--dry-run]
32073208
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
32083209
[-ws|--workspaces] [--include-workspace-root] [--install-links]
32093210
@@ -3227,6 +3228,7 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
32273228
#### \`strict-peer-deps\`
32283229
#### \`prefer-dedupe\`
32293230
#### \`package-lock\`
3231+
#### \`package-lock-only\`
32303232
#### \`foreground-scripts\`
32313233
#### \`ignore-scripts\`
32323234
#### \`audit\`
@@ -3291,8 +3293,9 @@ Options:
32913293
[-E|--save-exact] [-g|--global]
32923294
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
32933295
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
3294-
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--foreground-scripts]
3295-
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
3296+
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--package-lock-only]
3297+
[--foreground-scripts] [--ignore-scripts] [--no-audit] [--no-bin-links]
3298+
[--no-fund] [--dry-run]
32963299
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
32973300
[-ws|--workspaces] [--include-workspace-root] [--install-links]
32983301
@@ -3316,6 +3319,7 @@ alias: it
33163319
#### \`strict-peer-deps\`
33173320
#### \`prefer-dedupe\`
33183321
#### \`package-lock\`
3322+
#### \`package-lock-only\`
33193323
#### \`foreground-scripts\`
33203324
#### \`ignore-scripts\`
33213325
#### \`audit\`

0 commit comments

Comments
 (0)
Please sign in to comment.