mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08:00
build: change space replacement when set version to fix client upgrade always problem (#5554)
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for DIR_ITEM in $(yarn workspaces list --json | jq -r '.location'); do
|
for DIR_ITEM in $(yarn workspaces list --json | jq -r '.location'); do
|
||||||
DIR=$(echo -n "$DIR_ITEM" | sed -e 's/[[:blank:]]*$//' -e 's/[\n\r]*$//')
|
DIR=$(echo -n "$DIR_ITEM" | tr -d '\r\n')
|
||||||
if [ -f "$DIR/package.json" ]; then
|
if [ -f "$DIR/package.json" ]; then
|
||||||
echo "Setting version for $DIR"
|
echo "Setting version for $DIR"
|
||||||
jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
|
jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
|
||||||
|
else
|
||||||
|
echo "No package.json found in: $DIR"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user