nodeenv exports need to be in a sourced file to avoid nvm conflict
This commit is contained in:
parent
d0c41a2d3c
commit
d6bb268315
|
@ -192,6 +192,7 @@ COPY env/docker-entrypoint.sh \
|
||||||
/usr/local/bin/
|
/usr/local/bin/
|
||||||
COPY --chown=embark:embark \
|
COPY --chown=embark:embark \
|
||||||
env/.bash_env \
|
env/.bash_env \
|
||||||
|
env/.bash_env_nodeenv_exports \
|
||||||
env/.bash_env_unset_npm_config \
|
env/.bash_env_unset_npm_config \
|
||||||
env/.bashrc \
|
env/.bashrc \
|
||||||
env/.npmrc \
|
env/.npmrc \
|
||||||
|
|
|
@ -25,11 +25,7 @@ nac () {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
export -f deactivate_node
|
export -f deactivate_node
|
||||||
export _OLD_NODE_PATH
|
. "${HOME}/.bash_env_nodeenv_exports"
|
||||||
export _OLD_NODE_VIRTUAL_PATH
|
|
||||||
export _OLD_NODE_VIRTUAL_PS1
|
|
||||||
export _OLD_npm_config_prefix
|
|
||||||
export _OLD_NPM_CONFIG_PREFIX
|
|
||||||
alias denac='deactivate_node'
|
alias denac='deactivate_node'
|
||||||
alias deactivate_node='__denac'
|
alias deactivate_node='__denac'
|
||||||
__versions
|
__versions
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
export _OLD_NODE_PATH
|
||||||
|
export _OLD_NODE_VIRTUAL_PATH
|
||||||
|
export _OLD_NODE_VIRTUAL_PS1
|
||||||
|
export _OLD_npm_config_prefix
|
||||||
|
export _OLD_NPM_CONFIG_PREFIX
|
Loading…
Reference in New Issue