Skip to content

Commit

Permalink
npm-base: Add support for no_proxy (#52)
Browse files Browse the repository at this point in the history
Exports no_proxy environment variable in addition to http_proxy.
  • Loading branch information
ytoda129 authored and imyller committed Sep 1, 2016
1 parent 01ac9ef commit b9bfb54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/npm-base.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ oe_runnpm() {

export http_proxy="${http_proxy}"
export https_proxy="${https_proxy}"
export no_proxy="${no_proxy}"

LD="${NPM_LD}" ${NPM} --registry=${NPM_REGISTRY} ${ARCH_FLAGS} ${NPM_FLAGS} "$@" || die "oe_runnpm failed"

Expand Down Expand Up @@ -73,6 +74,7 @@ oe_runnpm_native() {

export http_proxy="${http_proxy}"
export https_proxy="${https_proxy}"
export no_proxy="${no_proxy}"

LD="${NPM_LD_NATIVE}" ${NPM_NATIVE} --registry=${NPM_REGISTRY} ${ARCH_FLAGS} ${NPM_FLAGS_NATIVE} "$@" || die "oe_runnpm_native failed"

Expand Down

0 comments on commit b9bfb54

Please sign in to comment.