From 9662754d21e08694b80335ba22b6261c753f5e26 Mon Sep 17 00:00:00 2001 From: Vito Galatro Date: Tue, 26 Mar 2024 16:16:55 -0400 Subject: [PATCH] THEMES-1853: updated husky scripts (#2053) * THEMES-1853: updated pre-commit hook * THEMES-1853: updated pre-push hook --- .husky/pre-commit | 5 +---- .husky/pre-push | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 9f5c7d2442..c16c90c8e5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# npx lint-staged +npm run lint:changed-feature-branch diff --git a/.husky/pre-push b/.husky/pre-push index c10402243b..f9908b77da 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -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