Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
3
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.7 to 0.11.8

7

bin/install.js
// 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')

3

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc