mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
fix(ci): Fix failing release workflow by creating a self-contained bundle (#4888)
Co-authored-by: Jerop Kipruto <jerop@google.com>
This commit is contained in:
parent
d76cedb68f
commit
13b0971291
3 changed files with 49 additions and 45 deletions
|
|
@ -21,6 +21,7 @@ esbuild
|
|||
outfile: 'bundle/gemini.js',
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
external: [],
|
||||
alias: {
|
||||
'is-in-ci': path.resolve(
|
||||
__dirname,
|
||||
|
|
@ -33,27 +34,5 @@ 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);`,
|
||||
},
|
||||
external: [
|
||||
'es-toolkit/compat',
|
||||
'ansi-escapes',
|
||||
'auto-bind',
|
||||
'command-exists',
|
||||
'@babel/code-frame',
|
||||
'cli-truncate',
|
||||
'cli-cursor',
|
||||
'@alcalzone/ansi-tokenize',
|
||||
'cli-boxes',
|
||||
'code-excerpt',
|
||||
'chalk',
|
||||
'cli-spinners',
|
||||
'configstore',
|
||||
'gradient-string',
|
||||
'devlop',
|
||||
'escape-goat',
|
||||
'@iarna/toml',
|
||||
'@pnpm/npm-conf',
|
||||
'deep-extend',
|
||||
'ansi-align',
|
||||
],
|
||||
})
|
||||
.catch(() => process.exit(1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue