Comparing version 7.0.0 to 7.0.1
@@ -10,3 +10,3 @@ "use strict"; | ||
function install(dir = '.husky') { | ||
if (git(['rev-parse']).status) { | ||
if (git(['rev-parse']).status !== 0) { | ||
return; | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "husky", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Modern native Git hooks made easy", | ||
@@ -24,2 +24,3 @@ "keywords": [ | ||
"test": "sh test/all.sh", | ||
"lint": "eslint src --ext .ts", | ||
"serve": "docsify serve docs", | ||
@@ -26,0 +27,0 @@ "prepare": "npm run build && node lib/bin install" |
@@ -26,2 +26,3 @@ # husky | ||
npx husky add .husky/pre-commit "npm test" | ||
git add .husky/pre-commit | ||
``` | ||
@@ -32,3 +33,3 @@ | ||
```sh | ||
$ git commit -m "Keep calm and commit" | ||
git commit -m "Keep calm and commit" | ||
# `npm test` will run | ||
@@ -35,0 +36,0 @@ ``` |
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
6039
39