mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
adh/bugfix/1563 (#4822)
This commit is contained in:
@@ -21,6 +21,12 @@ esbuild
|
|||||||
outfile: 'bundle/gemini.js',
|
outfile: 'bundle/gemini.js',
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
|
alias: {
|
||||||
|
'is-in-ci': path.resolve(
|
||||||
|
__dirname,
|
||||||
|
'packages/cli/src/patches/is-in-ci.ts',
|
||||||
|
),
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.env.CLI_VERSION': JSON.stringify(pkg.version),
|
'process.env.CLI_VERSION': JSON.stringify(pkg.version),
|
||||||
},
|
},
|
||||||
|
|||||||
17
packages/cli/src/patches/is-in-ci.ts
Normal file
17
packages/cli/src/patches/is-in-ci.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright 2025 Google LLC
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This is a replacement for the `is-in-ci` package that always returns false.
|
||||||
|
// We are doing this to avoid the issue where `ink` does not render the UI
|
||||||
|
// when it detects that it is running in a CI environment.
|
||||||
|
// This is safe because `ink` (and thus `is-in-ci`) is only used in the
|
||||||
|
// interactive code path of the CLI.
|
||||||
|
// See issue #1563 for more details.
|
||||||
|
|
||||||
|
const isInCi = false;
|
||||||
|
|
||||||
|
// eslint-disable-next-line import/no-default-export
|
||||||
|
export default isInCi;
|
||||||
Reference in New Issue
Block a user