Skip to content

Commit 596706a

Browse files
committed
fix: revert prefer-offline/prefer-online exclusivity (#9129)
1 parent d1ee8a5 commit 596706a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ If true, staleness checks for cached data will be bypassed, but missing data
13961396
will be requested from the server. To force full offline mode, use
13971397
\`--offline\`.
13981398
1399-
This config cannot be used with: \`prefer-online\`
1399+
14001400
14011401
#### \`prefer-online\`
14021402
@@ -1406,7 +1406,7 @@ This config cannot be used with: \`prefer-online\`
14061406
If true, staleness checks for cached data will be forced, making the CLI
14071407
look for updates immediately even for fresh package data.
14081408
1409-
This config cannot be used with: \`prefer-offline\`
1409+
14101410
14111411
#### \`prefix\`
14121412
@@ -5420,8 +5420,8 @@ npm search <search term> [<search term> ...]
54205420
Options:
54215421
[--json] [--color|--no-color|--color always] [-p|--parseable] [--no-description]
54225422
[--searchlimit <number>] [--searchopts <searchopts>]
5423-
[--searchexclude <searchexclude>] [--registry <registry>]
5424-
[--prefer-online|--prefer-offline] [--offline]
5423+
[--searchexclude <searchexclude>] [--registry <registry>] [--prefer-online]
5424+
[--prefer-offline] [--offline]
54255425
54265426
--json
54275427
Whether or not to output JSON data, rather than the normal output.

workspaces/config/lib/definitions/definitions.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,6 @@ const definitions = {
16241624
'prefer-offline': new Definition('prefer-offline', {
16251625
default: false,
16261626
type: Boolean,
1627-
exclusive: ['prefer-online'],
16281627
description: `
16291628
If true, staleness checks for cached data will be bypassed, but missing
16301629
data will be requested from the server. To force full offline mode, use
@@ -1635,7 +1634,6 @@ const definitions = {
16351634
'prefer-online': new Definition('prefer-online', {
16361635
default: false,
16371636
type: Boolean,
1638-
exclusive: ['prefer-offline'],
16391637
description: `
16401638
If true, staleness checks for cached data will be forced, making the CLI
16411639
look for updates immediately even for fresh package data.

0 commit comments

Comments
 (0)