Comparing version 0.5.4 to 0.6.0
@@ -14,4 +14,6 @@ // Run when package is installed | ||
husky.create(dir, 'pre-push', 'npm run prepush --silent') | ||
husky.create(dir, 'post-merge', 'npm run postmerge --silent') | ||
console.log(' done\n') | ||
} | ||
}) |
@@ -11,2 +11,3 @@ // Run when package is uninstalled | ||
husky.remove(dir, 'pre-push') | ||
husky.remove(dir, 'post-merge') | ||
@@ -13,0 +14,0 @@ console.log(' done\n') |
{ | ||
"name": "husky", | ||
"version": "0.5.4", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush and all that stuff...)", | ||
"version": "0.6.0", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
"main": "index.js", | ||
@@ -23,2 +23,4 @@ "scripts": { | ||
"prepush", | ||
"post-merge", | ||
"postmerge", | ||
"test" | ||
@@ -25,0 +27,0 @@ ], |
@@ -25,4 +25,6 @@ # husky [![NPM version](https://badge.fury.io/js/husky.svg)](http://badge.fury.io/js/husky) [![Build Status](https://travis-ci.org/typicode/husky.svg?branch=master)](https://travis-ci.org/typicode/husky) | ||
_Both npm scripts are optional, existing hooks aren't replaced and adding `-n` to your git commands lets you bypass hooks._ | ||
_Both npm scripts are optional, existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks._ | ||
_To uninstall husky, simply run `npm rm husky --save-dev`._ | ||
_To uninstall husky, simply run `npm rm husky --save-dev`_. | ||
_Other supported hook: `post-merge`_ |
@@ -40,3 +40,3 @@ var fs = require('fs') | ||
+ ' echo\n' | ||
+ ' echo "husky - ' + name + ' hook failed (add -n to bypass)"\n' | ||
+ ' echo "husky - ' + name + ' hook failed (add --no-verify to bypass)"\n' | ||
+ ' echo\n' | ||
@@ -43,0 +43,0 @@ + ' exit 1\n' |
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
6101
110
30