- pnpm workspaces / tsconfig 双工程(node · web)/ 路径别名(§11.1) - eslint flat(§11.3 + §12.5 可机检项)/ dependency-cruiser 基线八条 + JCAI 增补(§11.4) - tools/module-tiers.json + gen-depcruise-tiers.ts 生成 tier-order 逐层规则 - tools/api-report.mjs 契约快照只留契约面(ADR-005) - docker-compose(PG16)+ db/init 四 schema;种子数据五岗位五员工冻结为常量 - docs/debt.md · docs/adr/ADR-005 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
27 lines
779 B
TypeScript
27 lines
779 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const root = fileURLToPath(new URL('../..', import.meta.url));
|
|
const p = (rel: string) => fileURLToPath(new URL(rel, import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@contracts': `${root}packages/contracts/src/index.ts`,
|
|
'@sfeel': `${root}packages/sfeel/src/index.ts`,
|
|
'@ui': `${root}packages/ui-kit/src/index.ts`,
|
|
'@utils': `${root}packages/utils/src/index.ts`,
|
|
'@features': p('./src/features'),
|
|
'@web-shared': p('./src/shared'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': { target: 'http://localhost:8787', changeOrigin: true },
|
|
},
|
|
},
|
|
});
|