Skip to content

Commit c3638ce

Browse files
authoredMay 18, 2023
docs: remove package-lock option for npm ci (#6468)
1 parent 0ded6b4 commit c3638ce

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed
 

‎lib/commands/ci.js

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class CI extends ArboristWorkspaceCmd {
1717
'global-style',
1818
'omit',
1919
'strict-peer-deps',
20-
'package-lock',
2120
'foreground-scripts',
2221
'ignore-scripts',
2322
'audit',

‎lib/utils/config/definitions.js

-2
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,6 @@ define('package-lock', {
14951495
If set to false, then ignore \`package-lock.json\` files when installing.
14961496
This will also prevent _writing_ \`package-lock.json\` if \`save\` is
14971497
true.
1498-
1499-
This configuration does not affect \`npm ci\`.
15001498
`,
15011499
flatten: (key, obj, flatOptions) => {
15021500
flatten(key, obj, flatOptions)

‎smoke-tests/tap-snapshots/test/index.js.test.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ npm ERR!
5757
npm ERR! Options:
5858
npm ERR! [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
5959
npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
60-
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
61-
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
60+
npm ERR! [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
61+
npm ERR! [--no-bin-links] [--no-fund] [--dry-run]
6262
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
6363
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
6464
npm ERR!

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,6 @@ The package or packages to install for [\`npm exec\`](/commands/npm-exec)
969969
If set to false, then ignore \`package-lock.json\` files when installing. This
970970
will also prevent _writing_ \`package-lock.json\` if \`save\` is true.
971971
972-
This configuration does not affect \`npm ci\`.
973-
974972
#### \`package-lock-only\`
975973
976974
* Default: false
@@ -2215,8 +2213,8 @@ npm ci
22152213
Options:
22162214
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
22172215
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2218-
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2219-
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
2216+
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
2217+
[--no-bin-links] [--no-fund] [--dry-run]
22202218
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
22212219
[-ws|--workspaces] [--include-workspace-root] [--install-links]
22222220
@@ -2235,7 +2233,6 @@ aliases: clean-install, ic, install-clean, isntall-clean
22352233
#### \`global-style\`
22362234
#### \`omit\`
22372235
#### \`strict-peer-deps\`
2238-
#### \`package-lock\`
22392236
#### \`foreground-scripts\`
22402237
#### \`ignore-scripts\`
22412238
#### \`audit\`
@@ -2811,8 +2808,8 @@ npm install-ci-test
28112808
Options:
28122809
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
28132810
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
2814-
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
2815-
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
2811+
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
2812+
[--no-bin-links] [--no-fund] [--dry-run]
28162813
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
28172814
[-ws|--workspaces] [--include-workspace-root] [--install-links]
28182815
@@ -2831,7 +2828,6 @@ aliases: cit, clean-install-test, sit
28312828
#### \`global-style\`
28322829
#### \`omit\`
28332830
#### \`strict-peer-deps\`
2834-
#### \`package-lock\`
28352831
#### \`foreground-scripts\`
28362832
#### \`ignore-scripts\`
28372833
#### \`audit\`

0 commit comments

Comments
 (0)
Please sign in to comment.