mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: use process.env.CLI_VERSION to avoid conflicts with NODE_ENV (#139)
This commit is contained in:
@@ -25,9 +25,7 @@ async function main() {
|
||||
if (process.stdin.isTTY && input?.length === 0) {
|
||||
const readUpResult = await readPackageUp({ cwd: __dirname });
|
||||
const cliVersion =
|
||||
process.env.NODE_ENV === 'development'
|
||||
? 'local'
|
||||
: (readUpResult?.packageJson.version ?? 'unknown');
|
||||
process.env.CLI_VERSION || readUpResult?.packageJson.version || 'unknown';
|
||||
|
||||
render(
|
||||
React.createElement(App, {
|
||||
|
||||
Reference in New Issue
Block a user