Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "husky", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -37,3 +37,6 @@ "main": "index.js", | ||
"rimraf": "^2.2.8" | ||
}, | ||
"dependencies": { | ||
"normalize-path": "^1.0.0" | ||
} | ||
} |
@@ -8,5 +8,5 @@ # husky [![](http://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/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) | ||
```bash | ||
$ npm install husky --save-dev | ||
``` | ||
npm install husky --save-dev | ||
``` | ||
@@ -18,3 +18,4 @@ ```javascript | ||
"precommit": "npm test", | ||
"prepush": "npm test" | ||
"prepush": "npm test", | ||
"...": "..." | ||
} | ||
@@ -28,6 +29,4 @@ } | ||
All scripts are optional, existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks. | ||
Existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks. You can also use any hook listed [here](https://github.com/typicode/husky/blob/master/hooks.json). | ||
To uninstall husky, simply run `npm rm husky --save-dev`. | ||
Supported hooks are listed [here](https://github.com/typicode/husky/blob/master/hooks.json) (simply remove `-` when adding them to your `package.json`) | ||
To uninstall husky, simply run `npm rm husky --save-dev` |
var fs = require('fs') | ||
var path = require('path') | ||
var exec = require('child_process').exec | ||
var normalize = require('normalize-path') | ||
@@ -47,4 +48,7 @@ module.exports = { | ||
// On Windows normalize path (i.e. convert \ to /) | ||
var normalizedPath = normalize(relativePath) | ||
data += | ||
'cd ' + relativePath + '\n' | ||
'cd ' + normalizedPath + '\n' | ||
// Fix for issue #16 #24 | ||
@@ -51,0 +55,0 @@ // Test if script is defined in package.json |
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
7603
150
1
30
+ Addednormalize-path@^1.0.0
+ Addednormalize-path@1.0.0(transitive)