6bedc1d60d
- drizzle-orm 1.0.0-beta.15 → 0.45.2, drizzle-kit → 0.31.10 - RQBv2 defineRelations() → 旧版 relations() 回调语法 - drizzle-orm/zod → drizzle-zod 独立包 - auth/schema.ts 改由 Better Auth CLI 生成(bun run db:auth) - db/schema/index.ts 选择性导出表(不导出生成文件中的旧版 relations) - 删除 db:push script,强制 db:generate → db:migrate 工作流 - 重建迁移基线(删除旧迁移目录,全新生成初始迁移)
78 lines
2.7 KiB
JSON
78 lines
2.7 KiB
JSON
{
|
|
"name": "@furtherverse/server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "bunx --bun vite build",
|
|
"cli": "bun run src/cli/index.ts",
|
|
"compile": "bun compile.ts",
|
|
"compile:darwin": "bun run compile:darwin:arm64 && bun run compile:darwin:x64",
|
|
"compile:darwin:arm64": "bun compile.ts --target bun-darwin-arm64",
|
|
"compile:darwin:x64": "bun compile.ts --target bun-darwin-x64",
|
|
"compile:linux": "bun run compile:linux:x64 && bun run compile:linux:arm64",
|
|
"compile:linux:arm64": "bun compile.ts --target bun-linux-arm64",
|
|
"compile:linux:x64": "bun compile.ts --target bun-linux-x64",
|
|
"compile:windows": "bun run compile:windows:x64",
|
|
"compile:windows:x64": "bun compile.ts --target bun-windows-x64",
|
|
"db:auth": "bunx auth@latest generate --output src/server/auth/schema.ts --yes",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:studio": "drizzle-kit studio",
|
|
"dev": "bunx --bun vite dev",
|
|
"fix": "biome check --write",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "catalog:",
|
|
"@dnd-kit/dom": "catalog:",
|
|
"@dnd-kit/helpers": "catalog:",
|
|
"@dnd-kit/react": "catalog:",
|
|
"@fontsource-variable/geist": "catalog:",
|
|
"@orpc/client": "catalog:",
|
|
"@orpc/contract": "catalog:",
|
|
"@orpc/openapi": "catalog:",
|
|
"@orpc/server": "catalog:",
|
|
"@orpc/tanstack-query": "catalog:",
|
|
"@orpc/zod": "catalog:",
|
|
"@t3-oss/env-core": "catalog:",
|
|
"@tanstack/react-query": "catalog:",
|
|
"@tanstack/react-router": "catalog:",
|
|
"@tanstack/react-router-ssr-query": "catalog:",
|
|
"@tanstack/react-start": "catalog:",
|
|
"@tanstack/react-virtual": "catalog:",
|
|
"better-auth": "catalog:",
|
|
"citty": "catalog:",
|
|
"class-variance-authority": "catalog:",
|
|
"clsx": "catalog:",
|
|
"drizzle-orm": "catalog:",
|
|
"drizzle-zod": "catalog:",
|
|
"lucide-react": "catalog:",
|
|
"next-themes": "catalog:",
|
|
"postgres": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"sonner": "catalog:",
|
|
"tailwind-merge": "catalog:",
|
|
"tw-animate-css": "catalog:",
|
|
"uuid": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@furtherverse/tsconfig": "workspace:*",
|
|
"@rolldown/plugin-babel": "catalog:",
|
|
"@tailwindcss/vite": "catalog:",
|
|
"@tanstack/devtools-vite": "catalog:",
|
|
"@tanstack/react-devtools": "catalog:",
|
|
"@tanstack/react-query-devtools": "catalog:",
|
|
"@tanstack/react-router-devtools": "catalog:",
|
|
"@types/bun": "catalog:",
|
|
"@vitejs/plugin-react": "catalog:",
|
|
"babel-plugin-react-compiler": "catalog:",
|
|
"drizzle-kit": "catalog:",
|
|
"nitro": "catalog:",
|
|
"tailwindcss": "catalog:",
|
|
"vite": "catalog:"
|
|
}
|
|
}
|