Files
Refactoring Agent 454195cdfb
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 3m16s
Update hooks and ignore markdown files in size check
2026-04-29 12:18:08 +02:00

17 lines
524 B
Bash
Executable File

#!/bin/sh
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
if echo "$changed_files" | grep --quiet -E "package.json|package-lock.json"; then
echo "📦 Dependencies changed. Syncing..."
# --no-progress stops the terminal spam
# --loglevel error ensures we only see the bad stuff
if npm install --no-progress --loglevel error; then
echo "✅ Node modules are up to date."
else
echo "❌ npm install failed! Please check your connection or package.json."
exit 1
fi
fi