main init

This commit is contained in:
2026-11-13 00:38:47 +01:00
commit e377873a85
124 changed files with 12320 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { readFileSync } from "node:fs";
import { defineConfig } from "vite";
// The version shown in-game comes from package.json. Keep versionName in
// android/app/build.gradle in step - a bug report is only useful if it names a build.
const pkg = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")) as { version: string };
export default defineConfig({
define: { __APP_VERSION__: JSON.stringify(pkg.version) },
build: { target: "es2020" },
});