Skip to content

Commit

Permalink
feat(scripts): allow explicit workspace arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 5, 2024
1 parent d7c8fa1 commit 110326f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/get-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/resolve-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 110326f

Please sign in to comment.