mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user