You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prometheus/scripts/npm-deps.sh

17 lines
273 B

#!/bin/bash
function ncu() {
target=$1
npx npm-check-updates -u --target "${target}"
}
cd web/ui
for workspace in $(npm ls --production --depth 1 -json | jq -r '.dependencies[].resolved[8:]'); do
cd "${workspace}"
ncu "$1"
cd ../
done
ncu "$1"
npm install