mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
fix: extract app version from apps/ui/package.json instead of monorepo root
The start-automaker.sh script now correctly sources the app version (0.12.0) from apps/ui/package.json instead of the monorepo version (1.0.0) from the root package.json. This ensures the launcher displays the correct Automaker application version.
This commit is contained in:
@@ -37,11 +37,11 @@ DEFAULT_SERVER_PORT=3008
|
||||
WEB_PORT=$DEFAULT_WEB_PORT
|
||||
SERVER_PORT=$DEFAULT_SERVER_PORT
|
||||
|
||||
# Extract VERSION from package.json (using node for reliable JSON parsing)
|
||||
# Extract VERSION from apps/ui/package.json (the actual app version, not monorepo version)
|
||||
if command -v node &> /dev/null; then
|
||||
VERSION="v$(node -p "require('$SCRIPT_DIR/package.json').version" 2>/dev/null || echo "0.0.0")"
|
||||
VERSION="v$(node -p "require('$SCRIPT_DIR/apps/ui/package.json').version" 2>/dev/null || echo "0.11.0")"
|
||||
else
|
||||
VERSION=$(grep '"version"' "$SCRIPT_DIR/package.json" | head -1 | sed 's/.*"version"[^"]*"\([^"]*\)".*/v\1/')
|
||||
VERSION=$(grep '"version"' "$SCRIPT_DIR/apps/ui/package.json" 2>/dev/null | head -1 | sed 's/.*"version"[^"]*"\([^"]*\)".*/v\1/' || echo "v0.11.0")
|
||||
fi
|
||||
|
||||
# ANSI Color codes (256-color palette)
|
||||
|
||||
Reference in New Issue
Block a user