Skip to content

Commit d273380

Browse files
authored
fix(config): make prefer-offline and prefer-online exclusive (#9129)
1 parent 7e9d538 commit d273380

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

workspaces/config/lib/definitions/definitions.js

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

0 commit comments

Comments
 (0)