Skip to content

Commit 079c207

Browse files
committed
Fix the version not being dynamic
1 parent ce7dcd9 commit 079c207

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/browser/components/app-shell.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
HoverCardTrigger,
2323
HoverCardContent,
2424
} from "../ui/hover-card";
25+
import { version } from "../../../package.json";
2526

2627
// ============================================================================
2728
// App Shell - Tab-based Layout
@@ -138,7 +139,7 @@ export function AppShell() {
138139
<div>
139140
<h4 className="text-sm font-semibold">Pulldash</h4>
140141
<p className="text-[10px] text-muted-foreground font-mono">
141-
v0.0.2
142+
v{version}
142143
</p>
143144
</div>
144145
</div>

src/browser/contexts/telemetry.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from "react";
88
import posthog from "posthog-js";
99
import { useCurrentUser } from "./github";
10+
import { version } from "../../../package.json";
1011

1112
// ============================================================================
1213
// Configuration
@@ -16,7 +17,7 @@ const POSTHOG_KEY = "phc_vvticSI4cYwo89gWzSwHeLIMC8jgNy5TeYq2THJX3X5";
1617
const POSTHOG_HOST = "https://us.i.posthog.com";
1718

1819
// App version from package.json (injected at build time or read from meta tag)
19-
const APP_VERSION = "0.0.2";
20+
const APP_VERSION = version;
2021

2122
// ============================================================================
2223
// Platform Detection

0 commit comments

Comments
 (0)