Skip to content

Commit 203ed91

Browse files
committed
chore: Fix update script
1 parent 37672e0 commit 203ed91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/update-all-swc-crates.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ set -eu
44

55
echo "Listing all swc crates"
66

7-
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)
7+
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)
8+
swc_deps=$(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)
89

910
command="cargo update"
10-
for crate in $swc_crates; do
11+
for crate in $swc_deps; do
1112
command="$command -p $crate"
1213
done
1314

0 commit comments

Comments
 (0)