Skip to content

Commit

Permalink
THEMES-1853: updated husky scripts (#2053)
Browse files Browse the repository at this point in the history
* THEMES-1853: updated pre-commit hook

* THEMES-1853: updated pre-push hook
  • Loading branch information
vgalatro authored Mar 26, 2024
1 parent 424b40d commit 9662754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# npx lint-staged
npm run lint:changed-feature-branch
6 changes: 1 addition & 5 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# fetching latest changes `git fetch -a --depth 100` to ensure the base branch is up to date
# git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch
git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch

0 comments on commit 9662754

Please sign in to comment.