mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
committed by
Zoltan Kochan
parent
2fe4ba9544
commit
4b3852c393
5
.changeset/ten-lions-complain.md
Normal file
5
.changeset/ten-lions-complain.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/config": patch
|
||||
---
|
||||
|
||||
The noproxy setting should work.
|
||||
@@ -390,7 +390,7 @@ export default async (
|
||||
pnpmConfig.httpProxy = pnpmConfig.httpsProxy ?? getProcessEnv('http_proxy') ?? getProcessEnv('proxy')
|
||||
}
|
||||
if (!pnpmConfig.noProxy) {
|
||||
pnpmConfig.noProxy = getProcessEnv('no_proxy')
|
||||
pnpmConfig.noProxy = pnpmConfig['noproxy'] ?? getProcessEnv('no_proxy')
|
||||
}
|
||||
pnpmConfig.enablePnp = pnpmConfig['nodeLinker'] === 'pnp'
|
||||
|
||||
|
||||
@@ -656,3 +656,16 @@ test('warn user unknown settings in npmrc', async () => {
|
||||
|
||||
expect(noWarnings).toStrictEqual([])
|
||||
})
|
||||
|
||||
test('getConfig() converts noproxy to noProxy', async () => {
|
||||
const { config } = await getConfig({
|
||||
cliOptions: {
|
||||
noproxy: 'www.foo.com',
|
||||
},
|
||||
packageManager: {
|
||||
name: 'pnpm',
|
||||
version: '1.0.0',
|
||||
},
|
||||
})
|
||||
expect(config.noProxy).toBe('www.foo.com')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user