From b7b2324d9921894ffaf7deb9169bd6f7f1a5a71e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 8 May 2026 22:28:04 +0100 Subject: [PATCH] Extend outdated/update scripts for s3-browser --- scripts/dev/outdated | 11 ++++++++--- scripts/dev/update | 4 ++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/dev/outdated b/scripts/dev/outdated index b065430a..166d2395 100755 --- a/scripts/dev/outdated +++ b/scripts/dev/outdated @@ -37,12 +37,17 @@ run_and_track "Sqlean" "mix sqlean.update_version" mix sqlean.check_version debug_msg "Checking outdated mix dependencies" run_and_track "Mix dependencies" "mix deps.update --all" mix hex.outdated --all +debug_msg "Checking outdated pi s3-browser dependencies..." +run_and_track "pi s3-browser dependencies" \ + "npm update --prefix .pi/extensions/s3-browser" \ + npm outdated --prefix .pi/extensions/s3-browser + # Print summary table echo "" echo "========================================================================" echo "Summary" echo "========================================================================" -printf "%-20s | %-16s | %s\n" "Dependency" "Status" "Next Step" +printf "%-26s | %-16s | %s\n" "Dependency" "Status" "Next Step" echo "------------------------------------------------------------------------" red=$(tput setaf 1) @@ -55,9 +60,9 @@ for i in "${!command_names[@]}"; do next_step="${command_next_steps[$i]}" if [ "$result" -eq 0 ]; then - printf "%-20s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do" + printf "%-26s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do" else - printf "%-20s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step" + printf "%-26s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step" fi done diff --git a/scripts/dev/update b/scripts/dev/update index 7465b9f9..d76d05a9 100755 --- a/scripts/dev/update +++ b/scripts/dev/update @@ -23,6 +23,10 @@ mix deps.update --all mix usage_rules.sync +debug_msg "Updating pi s3-browser dependencies" + +npm update --prefix .pi/extensions/s3-browser + debug_msg "Updating gh extensions" gh extension upgrade gfm-preview