Fix local run freshness and plugin asset handling

This commit is contained in:
npc0-hue
2026-08-22 19:45:00 +08:00
parent bb5e48b29c
commit ebd616c549
23 changed files with 312 additions and 58 deletions
+7
View File
@@ -2,6 +2,7 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
RUN_SOURCE_DIR="${RUN_SOURCE_DIR:-${RUN_REPO_DIR:-$ROOT_DIR/run}}"
ensure_node_deps() {
local dir="$1"
@@ -14,6 +15,12 @@ ensure_node_deps() {
(cd "$ROOT_DIR/platform" && go test ./...)
if [[ -d "$RUN_SOURCE_DIR/.git" ]]; then
(cd "$RUN_SOURCE_DIR" && go test ./...)
else
printf 'independent run checkout not found at %s; skipping run checks\n' "$RUN_SOURCE_DIR"
fi
ensure_node_deps "$ROOT_DIR/platform_web"
(cd "$ROOT_DIR/platform_web" && npm run typecheck && npm run test && npm run build)