From 3cbcc4a0abbe1cb09096d0b989abba48acea8772 Mon Sep 17 00:00:00 2001 From: 0xdefec71f <35151132+0xdefec71f@users.noreply.github.com> Date: Sun, 4 May 2025 14:43:22 +0200 Subject: [PATCH] fix: Improve update script (#27308) --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.sh b/update.sh index 781237b7c..5baad3b7b 100755 --- a/update.sh +++ b/update.sh @@ -36,6 +36,14 @@ else fi fi +echo "Resetting local changes to package.json and pnpm-lock.yaml..." +git checkout --quiet -- package.json pnpm-lock.yaml || true + +if ! command -v pnpm >/dev/null 2>&1; then + echo "pnpm not found, preparing with Corepack..." + corepack prepare pnpm@latest --activate +fi + echo "Updating..." git pull --no-rebase