aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-05-24 22:18:40 +0300
committerGitHub <noreply@github.com>2022-05-24 22:18:40 +0300
commita6af6a3d7696bd2567ecb7e891b6596bdd934a97 (patch)
treea05564461a62a19e472d2d56e80888dd6f4a01cd
parentf25d9fcc3fffe9c0baf0c0e6259cb2be15525469 (diff)
adding nvm option: nvmInstallPath (#20)
adding nvm option
-rw-r--r--src/node/feature.json5
-rw-r--r--v1/feature-scripts.env2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/node/feature.json b/src/node/feature.json
index 7b092a5..fdb29cb 100644
--- a/src/node/feature.json
+++ b/src/node/feature.json
@@ -12,6 +12,11 @@
"type": "boolean",
"default": true,
"description": "Install dependencies to compile native node modules (node-gyp)?"
+ },
+ "nvmInstallPath": {
+ "type": "string",
+ "default": "/usr/local/share/nvm",
+ "description": "The path where NVM will be installed."
}
},
"extensions": ["dbaeumer.vscode-eslint"],
diff --git a/v1/feature-scripts.env b/v1/feature-scripts.env
index 857c1ec..8b7f734 100644
--- a/v1/feature-scripts.env
+++ b/v1/feature-scripts.env
@@ -9,7 +9,7 @@ _BUILD_ARG_GITHUB_CLI="./github-cli/install.sh ${_B
_BUILD_ARG_AWS_CLI="./aws-cli/install.sh ${_BUILD_ARG_AWS_CLI_VERSION:-latest}"
_BUILD_ARG_AZURE_CLI="./az-cli/install.sh ${_BUILD_ARG_AZURE_CLI_VERSION:-latest}"
_BUILD_ARG_SSHD="./sshd/install.sh"
-_BUILD_ARG_NODE="./node/install.sh /usr/local/share/nvm ${_BUILD_ARG_NODE_VERSION:-lts/*} automatic true ${_BUILD_ARG_NODE_NODEGYPDEPENDENCIES:-true}"
+_BUILD_ARG_NODE="./node/install.sh ${_BUILD_ARG_NODE_NVMINSTALLPATH:-/usr/local/share/nvm} ${_BUILD_ARG_NODE_VERSION:-lts/*} automatic true ${_BUILD_ARG_NODE_NODEGYPDEPENDENCIES:-true}"
_BUILD_ARG_PYTHON="./python/install.sh ${_BUILD_ARG_PYTHON_VERSION:-latest} ${_BUILD_ARG_PYTHON_INSTALLPATH:-/usr/local/python} /usr/local/py-utils automatic true ${_BUILD_ARG_PYTHON_INSTALLTOOLS:-true} true ${_BUILD_ARG_PYTHON_OPTIMIZE:-false}"
_BUILD_ARG_GO="./go/install.sh ${_BUILD_ARG_GOLANG_VERSION:-latest}"
_BUILD_ARG_JAVA="./java/wrapper.sh ${_BUILD_ARG_JAVA_VERSION:-latest}"