diff --git a/scripts/get-versions.sh b/scripts/get-versions.sh index 7495a8035c0..a3ede8aff24 100755 --- a/scripts/get-versions.sh +++ b/scripts/get-versions.sh @@ -7,5 +7,5 @@ WORKDIR=${1:-.} cd -- "$WORKDIR" npm query .workspace \ | jq -r '.[].location | "\(.)/package.json"' \ - | xargs jq '{key: .name, value: "^\(.version)"}' \ + | xargs jq 'select(.private | not) | {key: .name, value: "^\(.version)"}' \ | jq --slurp from_entries diff --git a/scripts/resolve-versions.sh b/scripts/resolve-versions.sh index 98cee14f406..7f3fb050883 100755 --- a/scripts/resolve-versions.sh +++ b/scripts/resolve-versions.sh @@ -8,7 +8,7 @@ set -ueo pipefail DIR=$(dirname -- "${BASH_SOURCE[0]}") -cd -- "$DIR/.." +cd -- "${1-$DIR/..}" override=$(jq 'to_entries | map({ key: ("**/" + .key), value: .value }) | from_entries')