Skip to content

Commit

Permalink
chore: Improve Rust update script
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 17, 2025
1 parent 4197e20 commit 6d6ed59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-all-swc-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

echo "Listing all swc crates"

swc_crates=$(cargo metadata --format-version=1 --all-features | jq '.packages .[] | select(.repository == "https://github.com/swc-project/swc.git" or .repository == "https://github.com/swc-project/plugins.git") | .name' -r)
swc_crates=$(cargo metadata --format-version=1 --all-features | jq '.packages .[] | select(.repository == "https://github.com/swc-project/swc.git" or .repository == "https://github.com/swc-project/plugins.git") | .name+"@'+.version -r)

command="cargo update"
for crate in $swc_crates; do
Expand Down

0 comments on commit 6d6ed59

Please sign in to comment.