swc/scripts/cargo/print-pulblished-files.sh

16 lines
337 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
crates=$(\
cargo metadata --format-version 1 \
| jq -r '.workspace_members[]' \
| cut -f1 -d" " \
| sort \
)
for crate in $crates
do
cargo publish -p $crate --dry-run --no-verify -v || true
done