summaryrefslogtreecommitdiff
path: root/esbuild.config.js
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-08-19 16:03:51 -0700
committerGitHub <[email protected]>2025-08-19 23:03:51 +0000
commitf1575f6d8de2f4efa0805a2d11a4a421a1a8228f (patch)
tree8977235b9a42983de3e76189f25ff055e9d28a83 /esbuild.config.js
parent0cc2a1e7ef904294fff982a4d75bf098b5b262f7 (diff)
feat(core): refactor shell execution to use node-pty (#6491)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'esbuild.config.js')
-rw-r--r--esbuild.config.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/esbuild.config.js b/esbuild.config.js
index 0cb8e0fa..c716f6b7 100644
--- a/esbuild.config.js
+++ b/esbuild.config.js
@@ -21,7 +21,15 @@ esbuild
outfile: 'bundle/gemini.js',
platform: 'node',
format: 'esm',
- external: [],
+ external: [
+ '@lydell/node-pty',
+ 'node-pty',
+ '@lydell/node-pty-darwin-arm64',
+ '@lydell/node-pty-darwin-x64',
+ '@lydell/node-pty-linux-x64',
+ '@lydell/node-pty-win32-arm64',
+ '@lydell/node-pty-win32-x64',
+ ],
alias: {
'is-in-ci': path.resolve(
__dirname,
@@ -34,5 +42,6 @@ esbuild
banner: {
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url); globalThis.__filename = require('url').fileURLToPath(import.meta.url); globalThis.__dirname = require('path').dirname(globalThis.__filename);`,
},
+ loader: { '.node': 'file' },
})
.catch(() => process.exit(1));