Skip to content

Commit

Permalink
#912: debug msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent ab4be95 commit 1e418cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ echo "#$TICKETID: " > ".git/templatemessage"


# ### run npm install ###

echo "[POST-CHECKOUT-1]"
IFS=$'\n'
echo "[POST-CHECKOUT-2]"
# regex supports mono-repos with a package.json at root-level and at package-level
PACKAGE_LOCK_REGEX="(^packages\/.*\/package-lock\.json)|(^package-lock\.json)"
echo "[POST-CHECKOUT-3]"
# extract all paths to package-lock.json files
PACKAGES=("$(git diff --name-only HEAD@{1} HEAD | grep -E "$PACKAGE_LOCK_REGEX")")
echo "[POST-CHECKOUT-4]"

if [[ ${PACKAGES[@]} ]]; then
for package in $PACKAGES; do
Expand Down
4 changes: 4 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/bin/sh -xv
# ### run npm install ###
. "$(dirname "$0")/_/husky.sh"
echo "[POST-MERGE-1]"

IFS=$'\n'
echo "[POST-MERGE-2]"
# regex supports mono-repos with a package.json at root-level and at package-level
PACKAGE_LOCK_REGEX="(^packages\/.*\/package-lock\.json)|(^package-lock\.json)"
echo "[POST-MERGE-3]"
# extract all paths to package-lock.json files
PACKAGES=("$(git diff --name-only HEAD@{1} HEAD | grep -E "$PACKAGE_LOCK_REGEX")")
echo "[POST-MERGE-4]"

if [[ ${PACKAGES[@]} ]]; then
for package in $PACKAGES; do
Expand Down

0 comments on commit 1e418cb

Please sign in to comment.