mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 06:31:47 +03:00
9 lines
256 B
Bash
9 lines
256 B
Bash
|
#!/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
|