Feature work with husky (#47) (#79)

* refactor(cli.ts): call isHookCalled function asynchronously

feat(githook.ts): add support for git core hooks path and fallback to default symlink url if not found

feat(utils/git.ts): add getCoreHooksPath function to retrieve the path of the core hooks directory.

* refactor(githook.ts): remove console.log statement from hookCommand function

* feat(prepare-commit-msg-hook.ts): add isStageAllFlag parameter to prepareCommitMessageHook function to stage all changes if flag is true

* refactor(githook.ts): use path.join to join path segments instead of string concatenation
style(githook.ts): format code with prettier
This commit is contained in:
Matt
2023-03-31 23:29:22 -06:00
committed by GitHub
parent 17ed061f73
commit 5185f3365c
4 changed files with 47 additions and 18 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ cli(
},
async () => {
// await checkIsLatestVersion();
if (isHookCalled) {
if (await isHookCalled()) {
prepareCommitMessageHook();
} else {
commit(extraArgs);