fix(cli): auto-inject VERSION from package.json at build time
alpha.28-30 binaries all reported 'v1.0.0-alpha.27' from a hardcoded constant in src/constants/urls.ts — my bump sed only matched package.json's 'version' key, not the TypeScript literal. build.ts now reads package.json version and injects it via Bun's `define` (source-text replacement, equivalent to esbuild --define). urls.ts reads the injected symbol with a runtime fallback for `bun src/...` dev mode. Version drift can't recur. + peers + status migrated to the render.ts unified renderer. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "claudemesh-cli-v2",
|
||||
"version": "1.0.0-alpha.30",
|
||||
"version": "1.0.0-alpha.31",
|
||||
"description": "Peer mesh for Claude Code sessions — CLI + MCP server.",
|
||||
"keywords": [
|
||||
"claude-code",
|
||||
|
||||
Reference in New Issue
Block a user