diff --git a/.changeset/dull-pillows-rule.md b/.changeset/dull-pillows-rule.md new file mode 100644 index 0000000000..56f14fc2b7 --- /dev/null +++ b/.changeset/dull-pillows-rule.md @@ -0,0 +1,11 @@ +--- +"@pnpm/plugin-commands-installation": patch +--- + +It should be possible to set the fetch related options through CLI options. +These are the fetch options: + +- `--fetch-retries=` +- `--fetch-retry-factor=` +- `--fetch-retry-maxtimeout=` +- `--fetch-retry-mintimeout=` diff --git a/packages/plugin-commands-installation/src/add.ts b/packages/plugin-commands-installation/src/add.ts index 16c26ca440..2bd976d8ef 100644 --- a/packages/plugin-commands-installation/src/add.ts +++ b/packages/plugin-commands-installation/src/add.ts @@ -11,6 +11,10 @@ export function rcOptionsTypes () { return R.pick([ 'child-concurrency', 'engine-strict', + 'fetch-retries', + 'fetch-retry-factor', + 'fetch-retry-maxtimeout', + 'fetch-retry-mintimeout', 'force', 'global-dir', 'global-pnpmfile', diff --git a/packages/plugin-commands-installation/src/install.ts b/packages/plugin-commands-installation/src/install.ts index a8e938e84a..a48dc24139 100644 --- a/packages/plugin-commands-installation/src/install.ts +++ b/packages/plugin-commands-installation/src/install.ts @@ -13,6 +13,10 @@ export function rcOptionsTypes () { 'child-concurrency', 'dev', 'engine-strict', + 'fetch-retries', + 'fetch-retry-factor', + 'fetch-retry-maxtimeout', + 'fetch-retry-mintimeout', 'frozen-lockfile', 'global-dir', 'global-pnpmfile', diff --git a/packages/plugin-commands-installation/src/update/index.ts b/packages/plugin-commands-installation/src/update/index.ts index b07dcaf5f8..dc05cb5b98 100644 --- a/packages/plugin-commands-installation/src/update/index.ts +++ b/packages/plugin-commands-installation/src/update/index.ts @@ -21,6 +21,10 @@ export function rcOptionsTypes () { 'depth', 'dev', 'engine-strict', + 'fetch-retries', + 'fetch-retry-factor', + 'fetch-retry-maxtimeout', + 'fetch-retry-mintimeout', 'force', 'global-dir', 'global-pnpmfile',