mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
fix version set for cli and slash commands (#892)
This commit is contained in:
parent
3f5ac384cc
commit
5bab5a7378
4 changed files with 11 additions and 3 deletions
|
|
@ -19,8 +19,10 @@
|
|||
|
||||
import { spawn, execSync } from 'child_process';
|
||||
import { join } from 'path';
|
||||
import { readFileSync } from 'fs';
|
||||
|
||||
const root = join(import.meta.dirname, '..');
|
||||
const pkg = JSON.parse(readFileSync(join(root, 'package.json'), 'utf-8'));
|
||||
|
||||
// check build status, write warnings to file for app to display if needed
|
||||
execSync('node ./scripts/check-build-status.js', {
|
||||
|
|
@ -56,7 +58,7 @@ nodeArgs.push(...process.argv.slice(2));
|
|||
|
||||
const env = {
|
||||
...process.env,
|
||||
CLI_VERSION: 'development',
|
||||
CLI_VERSION: pkg.version,
|
||||
DEV: 'true',
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue