@fatso83/check-commit-msg
Advanced tools
Comparing version 2.0.0 to 2.0.1
const pkgDir = require("pkg-dir"); | ||
const findUp = require("find-up"); | ||
const debug = require("debug")("check-commit-msg"); | ||
const debug = require("debug")("check-commit-msg.git-root"); | ||
@@ -5,0 +5,0 @@ debug("cwd: ", process.cwd()); |
@@ -6,8 +6,13 @@ /* eslint-disable no-console */ | ||
const rootDir = require("./git-root"); | ||
const debug = require("debug")("check-commit-msg.is-rebase-merge"); | ||
const rebasePath = path.join(rootDir, ".git/rebase-merge"); | ||
const mergePath = path.join(rootDir, ".git/MERGE_HEAD"); | ||
const rebasePath = path.join(rootDir, "rebase-merge"); | ||
const mergePath = path.join(rootDir, "MERGE_HEAD"); | ||
const isInMergeOrRebase = () => | ||
fs.existsSync(rebasePath) || fs.existsSync(mergePath); | ||
debug("rebase", rebasePath); | ||
debug("merge", mergePath); | ||
// this path only happens if testing the script alone | ||
if (require.main === module) { | ||
@@ -14,0 +19,0 @@ const result = isInMergeOrRebase(); |
{ | ||
"name": "@fatso83/check-commit-msg", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"bin": "./cli.js", | ||
@@ -22,4 +22,10 @@ "description": "Check if your commit message follows Chris Beam's \"Seven rules of a good commit message\"", | ||
"find-up": "^4.0.0", | ||
"husky": "^3.0.9", | ||
"pkg-dir": "^4.2.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "./test.sh" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
7675
120
5
+ Addedhusky@^3.0.9
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@types/normalize-package-data@2.4.4(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedcaller-callsite@2.0.0(transitive)
+ Addedcaller-path@2.0.0(transitive)
+ Addedcallsites@2.0.0(transitive)
+ Addedci-info@2.0.0(transitive)
+ Addedcosmiconfig@5.2.1(transitive)
+ Addedcross-spawn@6.0.6(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-stdin@7.0.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.9(transitive)
+ Addedhusky@3.1.0(transitive)
+ Addedimport-fresh@2.0.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedis-directory@0.3.1(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednormalize-package-data@2.5.0(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedopencollective-postinstall@2.0.3(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedparse-json@4.0.05.2.0(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedplease-upgrade-node@3.2.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedread-pkg@5.2.0(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedresolve-from@3.0.0(transitive)
+ Addedrun-node@1.0.0(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsemver-compare@1.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtype-fest@0.6.0(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwrappy@1.0.2(transitive)