[mod] introduce node.env.devtools function

This commit is contained in:
Markus Heiser 2022-01-22 09:26:17 +01:00 committed by Martin Fischer
parent cac0352986
commit 309147d86f
2 changed files with 12 additions and 3 deletions

View file

@ -117,6 +117,9 @@ nvm.install() {
info_msg "checkout ${NVM_VERSION_TAG}"
git checkout "${NVM_VERSION_TAG}" 2>&1 | prefix_stdout " ${_Yellow}||${_creset} "
popd &> /dev/null
if [ -f "${REPO_ROOT}/.nvm_packages" ]; then
cp "${REPO_ROOT}/.nvm_packages" "${NVM_DIR}/default-packages"
fi
nvm.env
}