From 5bab5a7378824d9079a1aae281683275143ba39e Mon Sep 17 00:00:00 2001 From: Zach Sais Date: Wed, 11 Jun 2025 08:25:26 -0500 Subject: fix version set for cli and slash commands (#892) --- scripts/start.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/start.js b/scripts/start.js index 17e0b665..16b8cb6c 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -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', }; -- cgit v1.2.3