prometheus/scripts/npm-deps.sh
Augustin Husson f67f87c82b
Update npm deps for v2.39 and fix the script called to do it (#11332)
* fix the way to get the list of workspaces

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>

* update UI dependencies

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2022-09-21 23:36:28 +02:00

23 lines
322 B
Bash
Executable file

#!/bin/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