From 2d3d1d97361371f519bb369b6618edb67f7aa87e Mon Sep 17 00:00:00 2001 From: ygd58 Date: Sun, 26 Apr 2026 17:45:10 +0200 Subject: [PATCH] fix(tui): use --outdir instead of --outfile in hermes-ink build script esbuild raises 'Must use outdir when there are multiple input files' on Android/Termux ARM64 with esbuild >=0.25. The build script used --outfile=dist/ink-bundle.js which is only valid for a single entry point with no code splitting. Switching to --outdir=dist fixes the error and names the output file dist/entry-exports.js (matching the input file name). Update index.js to import from the new path. Fixes #16072 --- ui-tui/packages/hermes-ink/index.js | 2 +- ui-tui/packages/hermes-ink/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-tui/packages/hermes-ink/index.js b/ui-tui/packages/hermes-ink/index.js index 758fef3073..8c0fa9c5b5 100644 --- a/ui-tui/packages/hermes-ink/index.js +++ b/ui-tui/packages/hermes-ink/index.js @@ -1 +1 @@ -export * from './dist/ink-bundle.js' +export * from './dist/entry-exports.js' diff --git a/ui-tui/packages/hermes-ink/package.json b/ui-tui/packages/hermes-ink/package.json index 8e23491310..8df3c02a4a 100644 --- a/ui-tui/packages/hermes-ink/package.json +++ b/ui-tui/packages/hermes-ink/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "esbuild src/entry-exports.ts --bundle --platform=node --format=esm --packages=external --outfile=dist/ink-bundle.js" + "build": "esbuild src/entry-exports.ts --bundle --platform=node --format=esm --packages=external --outdir=dist" }, "sideEffects": true, "main": "./index.js",