mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- Drop `@sofa/core` and `@sofa/api` from `apps/public-api` — importing workspace packages with DB/Node dependencies broke the Vercel edge runtime - `fetchUserData` on Trakt and Simkl importers now returns raw `unknown` API responses; parsing is deferred to the self-hosted server - Add `source` + `rawPayload` fields to `ParsePayloadInput`; `parsePayload` procedure now dispatches to `parseTraktPayload`/`parseSimklPayload` and returns full warnings + diagnostics - Export `ProviderEnum` from `apps/public-api/src/importers/index.ts` instead of defining it inline in `app.ts`
26 lines
626 B
JSON
26 lines
626 B
JSON
{
|
|
"name": "@sofa/public-api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "PORT=3002 bun --hot src/app.ts",
|
|
"start": "bun src/app.ts",
|
|
"lint": "oxlint",
|
|
"format": "oxfmt --config ../../.oxfmtrc.json",
|
|
"format:check": "oxfmt --check --config ../../.oxfmtrc.json",
|
|
"check-types": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hono/zod-validator": "0.7.6",
|
|
"@vercel/firewall": "1.1.2",
|
|
"hono": "4.12.9",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@sofa/tsconfig": "workspace:*",
|
|
"@types/bun": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|