From 005d47accece456084929ebce236944c83b12cb6 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Wed, 26 Mar 2025 21:55:42 +0000 Subject: [PATCH] build: fix husky warnings --- .husky/commit-msg | 4 ---- .husky/pre-commit | 5 +---- .husky/prepare-commit-msg | 4 ---- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 5de69ce0b147..b286f08d97f4 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,6 +1,2 @@ -#!/bin/sh -# commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works. -. "$(dirname $0)/_/husky.sh" - # Ahead of creating the commit, validate the commit message. yarn -s ng-dev commit-message pre-commit-validate --file $1; diff --git a/.husky/pre-commit b/.husky/pre-commit index 7c7220b3d4de..8cfccc94adb8 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - # Allow for the formatting command to fail without exiting the script. set +e @@ -8,4 +5,4 @@ yarn -s ng-dev format staged 2>/dev/null if [ $? -ne 0 ]; then echo "WARNING: failed to run file formatting (ng-dev format staged)" -fi \ No newline at end of file +fi diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index fdf5c9b17f59..65952642a6ef 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,6 +1,2 @@ -#!/bin/sh -# prepare-commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works. -. "$(dirname $0)/_/husky.sh" - # When a commit is started, restore the previous commit message draft if it exists. yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;