diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 52b72837536bb..2f8891f886263 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -1396,7 +1396,7 @@ If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server. To force full offline mode, use \`--offline\`. -This config cannot be used with: \`prefer-online\` + #### \`prefer-online\` @@ -1406,7 +1406,7 @@ This config cannot be used with: \`prefer-online\` If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data. -This config cannot be used with: \`prefer-offline\` + #### \`prefix\` @@ -5420,8 +5420,8 @@ npm search [ ...] Options: [--json] [--color|--no-color|--color always] [-p|--parseable] [--no-description] [--searchlimit ] [--searchopts ] -[--searchexclude ] [--registry ] -[--prefer-online|--prefer-offline] [--offline] +[--searchexclude ] [--registry ] [--prefer-online] +[--prefer-offline] [--offline] --json Whether or not to output JSON data, rather than the normal output. diff --git a/workspaces/config/lib/definitions/definitions.js b/workspaces/config/lib/definitions/definitions.js index acdc7e08a6627..7c5b2ce170d89 100644 --- a/workspaces/config/lib/definitions/definitions.js +++ b/workspaces/config/lib/definitions/definitions.js @@ -1624,7 +1624,6 @@ const definitions = { 'prefer-offline': new Definition('prefer-offline', { default: false, type: Boolean, - exclusive: ['prefer-online'], description: ` If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server. To force full offline mode, use @@ -1635,7 +1634,6 @@ const definitions = { 'prefer-online': new Definition('prefer-online', { default: false, type: Boolean, - exclusive: ['prefer-offline'], description: ` If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data.