chore: Use --all-features from update script

This commit is contained in:
강동윤 (Donny) 2024-03-28 15:29:59 +09:00
parent 00647ce227
commit b798632a82

View File

@ -4,7 +4,7 @@ set -eu
echo "Listing all swc crates"
swc_crates=$(cargo metadata --format-version=1 | 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' -r)
command="cargo update"
for crate in $swc_crates; do
@ -14,7 +14,7 @@ done
echo "Running: $command"
eval $command
all_direct_deps=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.source == null) | .dependencies .[] .name' -r)
all_direct_deps=$(cargo metadata --format-version=1 --all-features | jq -r '.packages[] | select(.source == null) | .dependencies .[] .name' -r)
direct_swc_deps=$(comm -12 <(echo "$swc_crates" | sort) <(echo "$all_direct_deps" | sort))