#!/usr/bin/sh

for dir in ~/git-repos/*/; do
  if [ -f "$dir/package.json" ]; then
    echo "=== Updating $(basename "$dir") ==="
    cd "$dir"
    npx npm-check-updates --timeout 70000 -u
    npm install
    echo ""
  fi
done
