- curated, bilingual player-facing notes (lib/patch-notes.ts) — a public subset of CHANGELOG.md (which stays the technical source of truth) - "Nouveautés" button on home with a dot badge when the app version changed since last seen (localStorage); opening marks the version seen - app version injected at build via Vite define (__APP_VERSION__) - add shadcn Dialog component (@workspace/ui, via radix-ui) Verified: notes + version baked into the build; typecheck/lint/build green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
548 B
TypeScript
22 lines
548 B
TypeScript
import path from "path"
|
|
import { readFileSync } from "node:fs"
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
|
|
const pkg = JSON.parse(
|
|
readFileSync(path.resolve(__dirname, "package.json"), "utf-8")
|
|
) as { version: string }
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(pkg.version),
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
})
|