feat(core): add staged self-updates and unify application version

This commit is contained in:
手瓜一十雪 committed 2026-10-18 12:50:11 +08:00
1 parent c54aeffc77
commit 5032cbb8c0
45 files changed
+1860 -165

No files matched your search

-9
View File
@@ -1,4 +1,3 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
@@ -7,11 +6,6 @@ import tailwindcss from '@tailwindcss/vite';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Single source of truth for the user-facing app version: monorepo root package.json.
const rootPkg = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf-8'),
) as { version: string };
export default defineConfig({
plugins: [tailwindcss(), react()],
resolve: {
@@ -19,9 +13,6 @@ export default defineConfig({
'@': path.resolve(__dirname, 'src'),
},
},
define: {
__APP_VERSION__: JSON.stringify(rootPkg.version),
},
server: {
port: 5178,
strictPort: false,