mirror of
https://github.com/swc-project/swc.git
synced 2024-09-11 08:45:34 +03:00
chore: Use --all-features
from update script
This commit is contained in:
parent
00647ce227
commit
b798632a82
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user