From 624a0458224d3b21c35bac88f056aa3dbdc83de9 Mon Sep 17 00:00:00 2001 From: Josh Lehman Date: Wed, 11 Mar 2026 21:15:03 -0700 Subject: [PATCH] build: avoid a2ui hash stdin hangs --- scripts/bundle-a2ui.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bundle-a2ui.sh b/scripts/bundle-a2ui.sh index 85bc265c7c9..3888e4cf5cb 100755 --- a/scripts/bundle-a2ui.sh +++ b/scripts/bundle-a2ui.sh @@ -32,13 +32,13 @@ INPUT_PATHS=( ) compute_hash() { - ROOT_DIR="$ROOT_DIR" node --input-type=module - "${INPUT_PATHS[@]}" <<'NODE' + ROOT_DIR="$ROOT_DIR" node --input-type=module --eval ' import { createHash } from "node:crypto"; import { promises as fs } from "node:fs"; import path from "node:path"; const rootDir = process.env.ROOT_DIR ?? process.cwd(); -const inputs = process.argv.slice(2); +const inputs = process.argv.slice(1); const files = []; async function walk(entryPath) { @@ -73,7 +73,7 @@ for (const filePath of files) { } process.stdout.write(hash.digest("hex")); -NODE +' "${INPUT_PATHS[@]}" } current_hash="$(compute_hash)"