Comparing version 0.13.0-0 to 0.13.0-1
# CHANGELOG | ||
## Unreleased | ||
## 0.13.0 (beta) | ||
To install it, use `npm install husky@beta --save-dev` | ||
* Make `husky` a little less verbose | ||
* Fix issue with `OS X + brew` where `nvm` was loaded even when `npm` was already present | ||
## 0.12.0 | ||
## 0.12.0 (stable) | ||
@@ -10,0 +12,0 @@ * Adds Git submodule support |
{ | ||
"name": "husky", | ||
"version": "0.13.0-0", | ||
"version": "0.13.0-1", | ||
"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", |
@@ -62,3 +62,3 @@ var fs = require('fs') | ||
'has_hook_script () {', | ||
' [ -f package.json ] && cat package.json | grep -q \'"$1"\\s*:\'', | ||
' [ -f package.json ] && cat package.json | grep -q "\\"$1\\"\\s*:"', | ||
'}', | ||
@@ -95,3 +95,3 @@ '' | ||
arr = arr.concat([ | ||
'exists npm || load_nvm BREW_NVM_DIR /usr/local/opt/nvm', | ||
'command_exists npm || load_nvm BREW_NVM_DIR /usr/local/opt/nvm', | ||
'' | ||
@@ -102,3 +102,3 @@ ]) | ||
arr = arr.concat([ | ||
'exists npm || load_nvm NVM_DIR ' + home + '/.nvm', | ||
'command_exists npm || load_nvm NVM_DIR ' + home + '/.nvm', | ||
'' | ||
@@ -121,3 +121,3 @@ ]) | ||
// Test if npm is in PATH | ||
'exists npm || {', | ||
'command_exists npm || {', | ||
' echo >&2 "' + npmNotFound + '"', | ||
@@ -130,3 +130,3 @@ ' exit 0', | ||
'echo', | ||
'echo "husky > npm run -s ' + cmd, | ||
'echo "husky > npm run -s ' + cmd + '"', | ||
'echo', | ||
@@ -139,3 +139,3 @@ '', | ||
' echo "> husky - ' + hookName + ' hook failed (add --no-verify to bypass)"', | ||
' echo "> husky - To debug, use \'npm run precommit\'', | ||
' echo "> husky - To debug, use \'npm run precommit\'"', | ||
' exit 1', | ||
@@ -142,0 +142,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
15569