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
This commit is contained in:
ygd58 2026-04-26 17:45:10 +02:00 committed by Teknium
parent 145a38a875
commit 2d3d1d9736
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
export * from './dist/ink-bundle.js' export * from './dist/entry-exports.js'

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "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, "sideEffects": true,
"main": "./index.js", "main": "./index.js",