Comparing version 5.0.1 to 5.0.2
@@ -18,2 +18,5 @@ "use strict"; | ||
function createHookFile(cwd, hookName, cmd) { | ||
if (!fs_1.default.existsSync(path_1.default.join(cwd, hooksDir))) { | ||
throw new Error("can't create hook, .husky directory doesn't exist"); | ||
} | ||
const filename = getHookFile(cwd, hookName); | ||
@@ -20,0 +23,0 @@ if (fs_1.default.existsSync(filename)) { |
{ | ||
"name": "husky", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Git hooks made easy", | ||
@@ -5,0 +5,0 @@ "bin": "lib/bin.js", |
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
25139
153