husky
Advanced tools
Comparing version 0.11.7 to 0.11.8
// Run when package is installed | ||
var fs = require('fs') | ||
var isCI = require('is-ci') | ||
var husky = require('../src/') | ||
var hooks = require('../src/hooks.json') | ||
if (isCI) { | ||
console.log('\033[4;36m%s\033[0m', 'husky') | ||
console.log('CI detected, skipping Git hooks installation') | ||
return | ||
} | ||
console.log('\033[4;36m%s\033[0m', 'husky') | ||
@@ -7,0 +14,0 @@ console.log('setting up hooks in .git/hooks') |
{ | ||
"name": "husky", | ||
"version": "0.11.7", | ||
"version": "0.11.8", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -39,4 +39,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"is-ci": "^1.0.9", | ||
"normalize-path": "^1.0.0" | ||
} | ||
} |
@@ -75,2 +75,11 @@ var fs = require('fs') | ||
]) | ||
// Add | ||
// Brew standard installation path /use/local/bin | ||
// Node standard installation path /usr/local | ||
// for GUI apps | ||
// https://github.com/typicode/husky/issues/49 | ||
arr = arr.concat([ | ||
'export PATH=$PATH:/usr/local/bin:/usr/local' | ||
]) | ||
} | ||
@@ -77,0 +86,0 @@ |
11229
203
2
+ Addedis-ci@^1.0.9
+ Addedci-info@1.6.0(transitive)
+ Addedis-ci@1.2.1(transitive)