From ebc8c5c69057940c9ed11a85d1c30cc42fabf234 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 11 Sep 2026 18:17:27 -0700 Subject: [PATCH] update, add updating of global NPM packages. --- facts/general/package.yml | 6 +++++- tasks/general/acct_mgmt/users.yml | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/facts/general/package.yml b/facts/general/package.yml index a4078bf..0777abe 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -264,7 +264,11 @@ fi ;; esac -# End of update_package_manager + update_npm: | + if [[ `which npm` ]]; then + echo "*** NPM ***" && + sudo npm update -g + fi # Flatpaks - name: General | Facts | Package | Update Command | Flatpak | Check diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 98a040b..cb1cdc4 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -248,6 +248,12 @@ {{ update_package_manager }} fi + if [[ "$only_flat" != "Y" && "$only_sys" != "Y" ]]; then + {{ update_npm }} + else + echo -e "\n*** Skipping NPM ***\n\n" + fi + if [[ "$shutdown" == "Y" && "{{ battery }}" == "True" ]]; then echo -e "\n*** Only System Updates - Skipping Flatpak ***\n\n" elif [[ "$only_sys" == "Y" ]]; then