Skip to content

Commit

Permalink
fix: remove incompatible params from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Apr 3, 2023
1 parent 54795a3 commit a0d45af
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
17 changes: 16 additions & 1 deletion lib/commands/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,22 @@ class CI extends ArboristWorkspaceCmd {
static description = 'Clean install a project'
static name = 'ci'

static params = Install.params
// These are in the order they will show up in when running "-h"
static params = [
'install-strategy',
'legacy-bundling',
'global-style',
'omit',
'strict-peer-deps',
'package-lock',
'foreground-scripts',
'ignore-scripts',
'audit',
'bin-links',
'fund',
'dry-run',
...super.params,
]

async exec () {
if (this.npm.global) {
Expand Down
1 change: 1 addition & 0 deletions lib/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Install extends ArboristWorkspaceCmd {
static name = 'install'

// These are in the order they will show up in when running "-h"
// If adding to this list, consider adding also to ci.js
static params = [
'save',
'save-exact',
Expand Down
10 changes: 0 additions & 10 deletions tap-snapshots/test/lib/docs.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2210,8 +2210,6 @@ Usage:
npm ci
Options:
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
[-E|--save-exact] [-g|--global]
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
Expand All @@ -2229,9 +2227,6 @@ npm ci
aliases: clean-install, ic, install-clean, isntall-clean
\`\`\`
#### \`save\`
#### \`save-exact\`
#### \`global\`
#### \`install-strategy\`
#### \`legacy-bundling\`
#### \`global-style\`
Expand Down Expand Up @@ -2811,8 +2806,6 @@ Usage:
npm install-ci-test
Options:
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
[-E|--save-exact] [-g|--global]
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
Expand All @@ -2830,9 +2823,6 @@ npm install-ci-test
aliases: cit, clean-install-test, sit
\`\`\`
#### \`save\`
#### \`save-exact\`
#### \`global\`
#### \`install-strategy\`
#### \`legacy-bundling\`
#### \`global-style\`
Expand Down

0 comments on commit a0d45af

Please sign in to comment.