fix: Improve update script (#27308)

This commit is contained in:
0xdefec71f
2025-05-04 14:43:22 +02:00
committed by GitHub
parent ff823dbaf0
commit 3cbcc4a0ab
+8
View File
@@ -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