fix: --https-proxy, --proxy, --no-proxy CLI options (#3277)

close #3274
This commit is contained in:
Zoltan Kochan
2021-03-25 01:54:59 +02:00
committed by Zoltan Kochan
parent b72e8b3081
commit 4f1ce907ad
6 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-installation": patch
---
Allow `--https-proxy`, `--proxy`, and `--noproxy` CLI options with the `install`, `add`, `update` commands.

View File

@@ -0,0 +1,5 @@
---
"@pnpm/config": patch
---
Add type for `noproxy`.

View File

@@ -54,6 +54,7 @@ export const types = Object.assign({
'modules-dir': String,
'network-concurrency': Number,
'node-linker': ['pnp'],
noproxy: String,
'npm-path': String,
offline: Boolean,
'package-import-method': ['auto', 'hardlink', 'clone', 'copy'],

View File

@@ -21,6 +21,7 @@ export function rcOptionsTypes () {
'global',
'hoist',
'hoist-pattern',
'https-proxy',
'ignore-pnpmfile',
'ignore-scripts',
'ignore-workspace-root-check',
@@ -31,11 +32,13 @@ export function rcOptionsTypes () {
'lockfile',
'modules-dir',
'network-concurrency',
'noproxy',
'npmPath',
'package-import-method',
'pnpmfile',
'prefer-offline',
'production',
'proxy',
'public-hoist-pattern',
'registry',
'reporter',

View File

@@ -23,6 +23,7 @@ export function rcOptionsTypes () {
'global',
'hoist',
'hoist-pattern',
'https-proxy',
'ignore-pnpmfile',
'ignore-scripts',
'link-workspace-packages',
@@ -32,11 +33,13 @@ export function rcOptionsTypes () {
'lockfile',
'modules-dir',
'network-concurrency',
'noproxy',
'package-import-method',
'pnpmfile',
'prefer-frozen-lockfile',
'prefer-offline',
'production',
'proxy',
'public-hoist-pattern',
'registry',
'reporter',

View File

@@ -29,6 +29,7 @@ export function rcOptionsTypes () {
'global-dir',
'global-pnpmfile',
'global',
'https-proxy',
'ignore-pnpmfile',
'ignore-scripts',
'lockfile-dir',
@@ -36,6 +37,7 @@ export function rcOptionsTypes () {
'lockfile-only',
'lockfile',
'network-concurrency',
'noproxy',
'npmPath',
'offline',
'only',
@@ -44,6 +46,7 @@ export function rcOptionsTypes () {
'pnpmfile',
'prefer-offline',
'production',
'proxy',
'registry',
'reporter',
'save',