mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
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:
parent
145a38a875
commit
2d3d1d9736
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
export * from './dist/ink-bundle.js'
|
export * from './dist/entry-exports.js'
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue