prometheus/scripts/npm-deps.sh
Julien Pivotto 64e465dddc chore: Update NPM deps for 3.12
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-05-08 13:59:50 +02:00

22 lines
330 B
Bash
Executable file

#!/usr/bin/env bash
set -e
current=$(pwd)
root_ui_folder=${current}/web/ui
function ncu() {
target=$1
npx npm-check-updates -u --target "${target}"
}
cd "${root_ui_folder}"
for workspace in $(jq -r '.workspaces[]' < package.json); do
cd "${workspace}"
ncu "$1"
cd "${root_ui_folder}"
done
ncu "$1"
npm install