Skip to content

Commit f4e73ab

Browse files
authoredApr 18, 2023
fix: remove incompatible params from ci (#6322)
1 parent 997bcdf commit f4e73ab

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed
 

‎lib/commands/ci.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,27 @@ const log = require('../utils/log-shim.js')
66
const validateLockfile = require('../utils/validate-lockfile.js')
77

88
const ArboristWorkspaceCmd = require('../arborist-cmd.js')
9-
const Install = require('./install.js')
109

1110
class CI extends ArboristWorkspaceCmd {
1211
static description = 'Clean install a project'
1312
static name = 'ci'
1413

15-
static params = Install.params
14+
// These are in the order they will show up in when running "-h"
15+
static params = [
16+
'install-strategy',
17+
'legacy-bundling',
18+
'global-style',
19+
'omit',
20+
'strict-peer-deps',
21+
'package-lock',
22+
'foreground-scripts',
23+
'ignore-scripts',
24+
'audit',
25+
'bin-links',
26+
'fund',
27+
'dry-run',
28+
...super.params,
29+
]
1630

1731
async exec () {
1832
if (this.npm.global) {

‎lib/commands/install.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Install extends ArboristWorkspaceCmd {
1616
static name = 'install'
1717

1818
// These are in the order they will show up in when running "-h"
19+
// If adding to this list, consider adding also to ci.js
1920
static params = [
2021
'save',
2122
'save-exact',

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

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ npm ERR! Usage:
5555
npm ERR! npm ci
5656
npm ERR!
5757
npm ERR! Options:
58-
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
59-
npm ERR! [-E|--save-exact] [-g|--global]
6058
npm ERR! [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
6159
npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
6260
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]

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

-10
Original file line numberDiff line numberDiff line change
@@ -2210,8 +2210,6 @@ Usage:
22102210
npm ci
22112211
22122212
Options:
2213-
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
2214-
[-E|--save-exact] [-g|--global]
22152213
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
22162214
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
22172215
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
@@ -2229,9 +2227,6 @@ npm ci
22292227
aliases: clean-install, ic, install-clean, isntall-clean
22302228
\`\`\`
22312229
2232-
#### \`save\`
2233-
#### \`save-exact\`
2234-
#### \`global\`
22352230
#### \`install-strategy\`
22362231
#### \`legacy-bundling\`
22372232
#### \`global-style\`
@@ -2811,8 +2806,6 @@ Usage:
28112806
npm install-ci-test
28122807
28132808
Options:
2814-
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
2815-
[-E|--save-exact] [-g|--global]
28162809
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
28172810
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
28182811
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
@@ -2830,9 +2823,6 @@ npm install-ci-test
28302823
aliases: cit, clean-install-test, sit
28312824
\`\`\`
28322825
2833-
#### \`save\`
2834-
#### \`save-exact\`
2835-
#### \`global\`
28362826
#### \`install-strategy\`
28372827
#### \`legacy-bundling\`
28382828
#### \`global-style\`

0 commit comments

Comments
 (0)
Please sign in to comment.