Comparing version 0.11.3 to 0.11.4
{ | ||
"name": "husky", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,8 +63,23 @@ var fs = require('fs') | ||
// If nvm is installed, try to load it | ||
// This will load default Node version or version specified by .nvmrc | ||
arr = arr.concat([ | ||
'export NVM_DIR="' + home + '/.nvm"', | ||
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && [ -f .nvmrc ] && nvm use', | ||
'export NVM_DIR="' + home + '/.nvm"' | ||
]) | ||
if (process.platform === 'darwin') { | ||
// If nvm was installed using homebrew, | ||
// nvm script will be found in /usr/local/opt/nvm | ||
arr = arr.concat([ | ||
'BREW_NVM_DIR="/usr/local/opt/nvm"', | ||
'[ -s "$BREW_NVM_DIR/nvm.sh" ] && . "$BREW_NVM_DIR/nvm.sh"' | ||
]) | ||
} | ||
arr = arr.concat([ | ||
// If nvm was installed using install script, | ||
// nvm script will be found in $NVM_DIR | ||
'[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"', | ||
// Test if nvm is in PATH and load version specified by .nvmrc | ||
'command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ] && nvm use' | ||
]) | ||
} | ||
@@ -71,0 +86,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9656
184
3