fix(fuel-prices): add xlsx to scripts/package-lock.json (#2153)

* fix(fuel-prices): add xlsx to scripts/package-lock.json so npm ci succeeds

* chore(pre-push): detect scripts/package-lock.json out-of-sync with package.json
This commit is contained in:
Elie Habib
2026-03-23 21:12:36 +04:00
committed by GitHub
parent 93ce10524c
commit dc74ed69e7
2 changed files with 118 additions and 1 deletions

View File

@@ -34,6 +34,19 @@ if [ -n "$BRANCH" ] && [ "$BRANCH" != "main" ] && [ "$BRANCH" != "master" ]; the
fi
fi
echo "Checking scripts/package-lock.json sync..."
if git diff --name-only origin/main -- scripts/package.json | grep -q .; then
if ! git diff --name-only origin/main -- scripts/package-lock.json | grep -q .; then
echo ""
echo "============================================================"
echo "ERROR: scripts/package.json was modified but scripts/package-lock.json was not committed."
echo "Run: cd scripts && npm install && cd .."
echo "Then: git add scripts/package-lock.json && git commit --amend --no-edit"
echo "============================================================"
exit 1
fi
fi
echo "Running type check..."
npm run typecheck || exit 1