fix(CLI): allow to pass fetch options

close #2810
PR #2811
This commit is contained in:
Zoltan Kochan
2020-08-29 13:14:15 +03:00
committed by GitHub
parent 9eb0c83595
commit e65e9bb3d8
4 changed files with 23 additions and 0 deletions

View File

@@ -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=<number>`
- `--fetch-retry-factor=<number>`
- `--fetch-retry-maxtimeout=<number>`
- `--fetch-retry-mintimeout=<number>`

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',