Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "husky", | ||
"version": "0.6.0", | ||
"version": "0.6.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", |
@@ -45,3 +45,6 @@ var fs = require('fs') | ||
// Create hooks directory if needed | ||
if (!fs.existsSync(dir)) fs.mkdirSync(dir) | ||
// Create hook file | ||
if (!fs.existsSync(filename)) { | ||
@@ -48,0 +51,0 @@ this.write(filename, data) |
@@ -9,2 +9,3 @@ var assert = require('assert') | ||
// should return git hooks path | ||
husky.hooksDir(function(err, dir) { | ||
@@ -15,7 +16,7 @@ assert.equal(err, null) | ||
// Create tmp dir | ||
var dir = __dirname + '/../tmp' | ||
// Reset tmp dir | ||
rm.sync('../tmp') | ||
fs.mkdirSync('../tmp') | ||
rm.sync(dir) | ||
fs.mkdirSync(dir) | ||
var dir = '../tmp/hooks' | ||
@@ -22,0 +23,0 @@ // husky should be able to create a hook and update it |
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
6246
114