From b4e351e4441d915cedd3e06fbe5462fa47c7a02c Mon Sep 17 00:00:00 2001 From: SreeCharan Desu Date: Fri, 13 Jun 2025 16:33:50 +0530 Subject: [PATCH 1/2] fix: update husky pre-commit to use bash and remove deprecated lines --- .husky/pre-commit | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) mode change 100644 => 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 index c2353602..c6b70e4c --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,19 +1,14 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/bin/bash -# Define the unwanted lock files -unwanted_files=("package-lock.json" "pnpm-lock.yaml" "bun.lockb") - -# Check for unwanted lock files in the staged changes -for file in "${unwanted_files[@]}"; do - if git diff --cached --name-only | grep -qE "^$file$"; then - echo "Error: Commits containing '$file' are not allowed. Please use Yarn and remove this file from your commit." - exit 1 - fi -done - -# Allow only yarn.lock, not mandatory but should be the only lock file if present -if git diff --cached --name-only | grep -qE "^(package-lock\.json|pnpm-lock\.yaml|bun\.lockb)$"; then - echo "Error: Only 'yarn.lock' is allowed as a lock file. Please remove any other lock files from your commit." - exit 1 +# Check for unwanted lock files in staged changes +if git diff --cached --name-only | grep -E '^(package-lock\.json|pnpm-lock\.yaml|bun\.lockb)$' > /dev/null; then + echo "Error: Commits containing 'package-lock.json', 'pnpm-lock.yaml', or 'bun.lockb' are not allowed." + echo "Please use Yarn and remove these files from your commit." + exit 1 fi + +# Allow only yarn.lock (optional but exclusive) +if git diff --cached --name-only | grep -E '^(package-lock\.json|pnpm-lock\.yaml|bun\.lockb)$' > /dev/null; then + echo "Error: Only 'yarn.lock' is allowed as a lock file. Please remove other lock files." + exit 1 +fi \ No newline at end of file From 67d3150799f8023da82ec7b1ed2db84b6b1793d1 Mon Sep 17 00:00:00 2001 From: SreeCharan Desu Date: Fri, 13 Jun 2025 17:37:35 +0530 Subject: [PATCH 2/2] fix: center TrackTools at bottom across all devices --- apps/web/components/Blog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/Blog.tsx b/apps/web/components/Blog.tsx index c652923f..7f5191ce 100644 --- a/apps/web/components/Blog.tsx +++ b/apps/web/components/Blog.tsx @@ -51,7 +51,7 @@ export const Blog = ({
-
+