Set up pnpm workspaces with three packages: a shared Zod-schema package, a Hono-based API exported as a library, and a Vite/React/ Tailwind frontend that mounts the API via Cloudflare Pages Functions. Storage is abstracted behind an S3-compatible provider so the project can migrate from R2 to a self-hosted MinIO without code changes. https://claude.ai/code/session_01TPBqgcSJMppgrpiq7fLywL
36 lines
825 B
JSON
36 lines
825 B
JSON
{
|
|
"name": "@leetete/api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./src/app.ts",
|
|
"types": "./src/app.ts",
|
|
"exports": {
|
|
".": "./src/app.ts",
|
|
"./env": "./src/env.ts",
|
|
"./db/schema": "./src/db/schema.ts"
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "tsc --noEmit",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:studio": "drizzle-kit studio"
|
|
},
|
|
"dependencies": {
|
|
"@leetete/shared": "workspace:*",
|
|
"aws4fetch": "^1.0.20",
|
|
"drizzle-orm": "^0.36.4",
|
|
"hono": "^4.6.14",
|
|
"nanoid": "^5.0.9",
|
|
"pdf-lib": "^1.17.1",
|
|
"qrcode": "^1.5.4",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20241218.0",
|
|
"@types/qrcode": "^1.5.5",
|
|
"drizzle-kit": "^0.28.1",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|