Skip to content

Commit

Permalink
chore: solve git tool may not fount yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Jul 4, 2022
1 parent a2520a2 commit ff5ab07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

PATH="$HOME/.yarn/bin:/usr/local/bin:$PATH"

npx --no -- commitlint --edit "${1}"
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

PATH="$HOME/.yarn/bin:/usr/local/bin:$PATH"

yarn lint

0 comments on commit ff5ab07

Please sign in to comment.