Skip to content

Commit ca64b09

Browse files
JooHyung Parkclaude
andcommitted
[ai-assisted] feat: inject app version dynamically and bump to 2.0.12
Replace hardcoded v2.0.0 in terminal welcome message with __APP_VERSION__ injected from npm_package_version via Vite define at build time. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 93c6c92 commit ca64b09

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "talktofigma-desktop",
33
"productName": "TalkToFigma Desktop",
4-
"version": "2.0.11",
4+
"version": "2.0.12",
55
"description": "Bridge between Figma and AI tools (Cursor, Claude Code) using Model Context Protocol",
66
"type": "module",
77
"main": ".vite/build/main.cjs",

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function App() {
6666
\\_/\\__,_|_|_|\\_\\ \\_/\\___/ |_| |_|\\__, |_| |_| |_|\\__,_|
6767
__/ |
6868
|___/`
69-
const welcomeMessage = `TalkToFigma Desktop v2.0.0
69+
const welcomeMessage = `TalkToFigma Desktop v${__APP_VERSION__}
7070
Ready to bridge Figma and AI tools via MCP
7171
→ Start the server to see logs`
7272

@@ -262,7 +262,7 @@ Ready to bridge Figma and AI tools via MCP
262262
\\_/\\__,_|_|_|\\_\\ \\_/\\___/ |_| |_|\\__, |_| |_| |_|\\__,_|
263263
__/ |
264264
|___/`
265-
const welcomeMessage = `TalkToFigma Desktop v2.0.0
265+
const welcomeMessage = `TalkToFigma Desktop v${__APP_VERSION__}
266266
Ready to bridge Figma and AI tools via MCP
267267
→ Start the server to see logs`
268268

src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ declare const __FIGMA_CLIENT_ID__: string;
55
declare const __FIGMA_CLIENT_SECRET__: string;
66
declare const __GOOGLE_ANALYTICS_ID__: string;
77
declare const __GOOGLE_ANALYTICS_API_SECRET__: string;
8+
declare const __APP_VERSION__: string;
89

910
declare module '*.png' {
1011
const value: string

vite.renderer.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ export default defineConfig({
3131
// These will be replaced with literal values in the bundled code
3232
'__GOOGLE_ANALYTICS_ID__': JSON.stringify(process.env.GOOGLE_ANALYTICS_ID || ''),
3333
'__GOOGLE_ANALYTICS_API_SECRET__': JSON.stringify(process.env.GOOGLE_ANALYTICS_API_SECRET || ''),
34+
'__APP_VERSION__': JSON.stringify(process.env.npm_package_version || ''),
3435
},
3536
});

0 commit comments

Comments
 (0)