AFFiNE/scripts/set-version.sh

9 lines
256 B
Bash
Raw Normal View History

2023-04-26 02:59:37 +03:00
#!/bin/bash
for DIR in $(yarn workspaces list --json | jq -r '.location'); do
if [ -f "$DIR/package.json" ]; then
echo "Setting version for $DIR"
jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
fi
done