Skip to content

Commit

Permalink
Merge pull request #8099 from Agoric/mfig-null-resolutions
Browse files Browse the repository at this point in the history
fix(resolve-versions): tolerate missing `package.json` resolutions
  • Loading branch information
michaelfig committed Jul 26, 2023
2 parents ad3aa42 + 7629dac commit 5eb596e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/resolve-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd -- "$DIR/.."
override=$(jq 'to_entries | map({ key: ("**/" + .key), value: .value }) | from_entries')

PACKAGEJSONHASH=$(
jq --arg override "$override" '.resolutions *= ($override | fromjson)' package.json |
jq --arg override "$override" '. * { resolutions: ($override | fromjson) }' package.json |
git hash-object -w --stdin
)
git cat-file blob "$PACKAGEJSONHASH" > package.json

0 comments on commit 5eb596e

Please sign in to comment.