Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13b0971

Browse files
abhipatel12jerop
andauthored
fix(ci): Fix failing release workflow by creating a self-contained bundle (google-gemini#4888)
Co-authored-by: Jerop Kipruto <[email protected]>
1 parent d76cedb commit 13b0971

File tree

3 files changed

+49
-45
lines changed

3 files changed

+49
-45
lines changed

esbuild.config.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ esbuild
2121
outfile: 'bundle/gemini.js',
2222
platform: 'node',
2323
format: 'esm',
24+
external: [],
2425
alias: {
2526
'is-in-ci': path.resolve(
2627
__dirname,
@@ -33,27 +34,5 @@ esbuild
3334
banner: {
3435
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);`,
3536
},
36-
external: [
37-
'es-toolkit/compat',
38-
'ansi-escapes',
39-
'auto-bind',
40-
'command-exists',
41-
'@babel/code-frame',
42-
'cli-truncate',
43-
'cli-cursor',
44-
'@alcalzone/ansi-tokenize',
45-
'cli-boxes',
46-
'code-excerpt',
47-
'chalk',
48-
'cli-spinners',
49-
'configstore',
50-
'gradient-string',
51-
'devlop',
52-
'escape-goat',
53-
'@iarna/toml',
54-
'@pnpm/npm-conf',
55-
'deep-extend',
56-
'ansi-align',
57-
],
5837
})
5938
.catch(() => process.exit(1));

package-lock.json

Lines changed: 45 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@google/gemini-cli-core": "file:../core",
32+
"@google/genai": "1.9.0",
3233
"@iarna/toml": "^2.2.5",
3334
"@types/update-notifier": "^6.0.8",
3435
"command-exists": "^1.2.9",
@@ -52,7 +53,8 @@
5253
"strip-ansi": "^7.1.0",
5354
"strip-json-comments": "^3.1.1",
5455
"update-notifier": "^7.3.1",
55-
"yargs": "^17.7.2"
56+
"yargs": "^17.7.2",
57+
"zod": "^3.23.8"
5658
},
5759
"devDependencies": {
5860
"@babel/runtime": "^7.27.6",

0 commit comments

Comments
 (0)