Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "husky", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -36,3 +36,2 @@ "main": "index.js", | ||
"devDependencies": { | ||
"mkdirp": "^0.5.1", | ||
"rimraf": "^2.2.8" | ||
@@ -39,0 +38,0 @@ }, |
@@ -60,3 +60,3 @@ var fs = require('fs') | ||
'[ $? -ne 0 ] && exit 0', | ||
'npm run ' + cmd + ' --silent -- "$@"', | ||
'npm run ' + cmd + ' --silent', | ||
'if [ $? -ne 0 ]; then', | ||
@@ -63,0 +63,0 @@ ' echo', |
@@ -5,3 +5,2 @@ var assert = require('assert') | ||
var rmrf = require('rimraf') | ||
var mkdirp = require('mkdirp') | ||
var husky = require('../src/') | ||
@@ -19,7 +18,7 @@ | ||
rmrf.sync(path.join(__dirname, '../tmp')) | ||
mkdirp.sync(path.join(__dirname, '../tmp')) | ||
fs.mkdirSync(path.join(__dirname, '../tmp')) | ||
var dir = '../tmp/hooks' | ||
var dir = path.join(__dirname, '../tmp/hooks') | ||
// husky should be able to create a hook and update it | ||
// husky should be able to create hooks directory and hook script | ||
assert.doesNotThrow(function () { | ||
@@ -29,2 +28,3 @@ husky.create(dir, 'pre-commit', 'foo') | ||
// husky should be able to update hook script | ||
assert.doesNotThrow(function () { | ||
@@ -31,0 +31,0 @@ husky.create(dir, 'pre-commit', 'bar') |
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
7745
1