Comparing version 0.12.0-0 to 0.12.0-1
{ | ||
"name": "husky", | ||
"version": "0.12.0-0", | ||
"version": "0.12.0-1", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -138,3 +138,3 @@ var fs = require('fs') | ||
// than .git, find relative path from project directory to package.json | ||
var relativePath = path.relative(hooksDir, packageDir) | ||
var relativePath = path.join('.', path.relative(projectDir, packageDir)) | ||
@@ -141,0 +141,0 @@ var hookScript = getHookScript(hookName, relativePath, cmd) |
@@ -46,3 +46,3 @@ var fs = require('fs') | ||
expect(hook).toInclude('# husky') | ||
expect(hook).toInclude('cd ../..') | ||
expect(hook).toInclude('cd .') | ||
expect(hook).toInclude('npm run precommit') | ||
@@ -55,3 +55,3 @@ }) | ||
expect(hook).toInclude('cd ../../some/path') | ||
expect(hook).toInclude('cd some/path') | ||
}) | ||
@@ -63,3 +63,3 @@ | ||
expect(hook).toInclude('cd ../../../../subproject') | ||
expect(hook).toInclude('cd subproject') | ||
}) | ||
@@ -66,0 +66,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
14257