The fe39fcb commit captured the file moves (git mv stages those automatically)
but didn't catch the content edits I made afterward — npm package rename
(@mizan/runtime → @mizan/base), path updates in Makefile/Dockerfile/examples,
and doc updates were all left unstaged at commit time.
This commit lands those:
- npm rename: 3 frontend package.jsons (base/vue/svelte) + mizan-base/src/index.ts + 4 codegen templates
- path updates: Makefile, Dockerfile.test, two Gitea workflows, four example/harness configs
- doc updates: CLAUDE.md, ROADMAP.md, ISSUES.md, docs/AFI_ARCHITECTURE.md
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
const reactPkg = path.resolve(__dirname, '../../../frontends/mizan-react/src')
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'mizan/channels': path.join(reactPkg, 'channels/index.ts'),
|
|
'mizan/client/react': path.join(reactPkg, 'client/react.ts'),
|
|
'mizan/client/nextjs': path.join(reactPkg, 'client/nextjs.tsx'),
|
|
'mizan/client': path.join(reactPkg, 'client/index.ts'),
|
|
'mizan/jwt': path.join(reactPkg, 'jwt/index.ts'),
|
|
'mizan/allauth/nextjs': path.join(reactPkg, 'allauth/nextjs.tsx'),
|
|
'mizan/allauth': path.join(reactPkg, 'allauth/index.ts'),
|
|
'mizan': path.join(reactPkg, 'index.ts'),
|
|
'@rythazhur/mizan/channels': path.join(reactPkg, 'channels/index.ts'),
|
|
'@rythazhur/mizan/jwt': path.join(reactPkg, 'jwt/index.ts'),
|
|
'@rythazhur/mizan': path.join(reactPkg, 'index.ts'),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:8000',
|
|
'/ws': { target: 'ws://localhost:8000', ws: true },
|
|
},
|
|
},
|
|
})
|