forked from imbytecat/fullstack-starter
- 添加 @orpc/contract 依赖以支持合约定义和类型安全。 - 添加 @orpc/contract 依赖以支持契约定义和类型安全。 - 更新客户端类型定义并移除冗余的 APIRouterClient 引入,确保客户端实例类型与路由定义一致。 - 添加基于 zod 的类型安全接口定义,包含待办事项的增删改查操作契约及对应的输入输出验证规则。 - 使用合约定义重构 Todo 处理函数,统一接口输入输出验证并移除冗余的 Zod 模式定义。 - 更新导出模块,将路由功能改为导出合约定义。 - 移除未使用的导入和类型定义,精简路由配置文件。
51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"name": "fullstack-starter",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "vite build && bun run compile",
|
|
"compile": "rm -rf out && bun build --compile .output/server/index.mjs --outfile out/server",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:push": "drizzle-kit push",
|
|
"db:studio": "drizzle-kit studio",
|
|
"dev": "vite dev",
|
|
"fix": "biome check --write",
|
|
"typecheck": "tsc -b"
|
|
},
|
|
"dependencies": {
|
|
"@orpc/client": "^1.13.4",
|
|
"@orpc/contract": "^1.13.4",
|
|
"@orpc/server": "^1.13.4",
|
|
"@orpc/tanstack-query": "^1.13.4",
|
|
"@t3-oss/env-core": "^0.13.10",
|
|
"@tanstack/react-query": "^5.90.18",
|
|
"@tanstack/react-query-devtools": "^5.91.2",
|
|
"@tanstack/react-router": "^1.151.0",
|
|
"@tanstack/react-router-devtools": "^1.151.0",
|
|
"@tanstack/react-router-ssr-query": "^1.151.0",
|
|
"@tanstack/react-start": "^1.151.0",
|
|
"drizzle-orm": "^0.45.1",
|
|
"drizzle-zod": "^0.8.3",
|
|
"postgres": "^3.4.8",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3",
|
|
"tailwindcss": "^4.1.18",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.3.11",
|
|
"@tailwindcss/vite": "^4.1.18",
|
|
"@tanstack/devtools-vite": "^0.4.1",
|
|
"@tanstack/react-devtools": "^0.9.2",
|
|
"@types/bun": "^1.3.6",
|
|
"@vitejs/plugin-react": "^5.1.2",
|
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
"drizzle-kit": "^0.31.8",
|
|
"nitro": "npm:nitro-nightly@latest",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^8.0.0-beta.8",
|
|
"vite-tsconfig-paths": "^6.0.4"
|
|
}
|
|
}
|