mirror of
https://github.com/Smile-QWQ/SubTracker.git
synced 2026-06-20 20:16:23 +08:00
- combine the worker-lite performance and reliability work into one coherent commit for the cf-worker branch - reduce duplicate submissions and repeated settings fetches on the frontend, add clearer saving/recognition states, and keep Worker-limit error messaging focused on real failures - refactor worker hot paths around D1/KV usage with short-lived caching, lighter settings/auth access, lazy Prisma creation, slimmer statistics/calendar queries, and safer exchange-rate reads - simplify logo search and remote-logo handling for Lite constraints, keep cron and notification flows aligned with Worker Free limits, and preserve current Lite-specific UX decisions - remove unsupported Prisma interactive transactions for D1, batch Wallos import writes, chunk D1 tag joins, and fix Cloudflare-specific issues such as KV minimum TTL handling and remote reset execution on Windows - include the latest Lite-side cleanup: route-level tags caching, skipping unnecessary tag reads in statistics when tag budgets are disabled, removing calendar adjacent-month prefetching, and executing remote reset SQL through a temp file
34 lines
1.5 KiB
JSON
34 lines
1.5 KiB
JSON
{
|
|
"name": "subtracker",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Subscription tracker with currency conversion, reminder webhooks, statistics and calendar.",
|
|
"workspaces": [
|
|
"apps/*",
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"dev": "node scripts/dev.mjs",
|
|
"build": "npm run build -w packages/shared && npm run build -w apps/api && npm run build -w apps/web",
|
|
"build:web": "npm run build -w packages/shared && npm run build -w apps/web",
|
|
"test": "npm run test -w packages/shared && npm run test -w apps/api && npm run test -w apps/web",
|
|
"lint": "npm run lint -w apps/api && npm run lint -w apps/web",
|
|
"prisma:generate": "npm run prisma:generate -w apps/api",
|
|
"prisma:migrate": "npm run prisma:migrate -w apps/api",
|
|
"prisma:push": "npm run prisma:push -w apps/api",
|
|
"prisma:seed": "npm run prisma:seed -w apps/api",
|
|
"dev:worker": "wrangler dev",
|
|
"reset:worker:local": "node scripts/reset-cloudflare-state.mjs --local-all",
|
|
"reset:worker:local:d1": "node scripts/reset-cloudflare-state.mjs --local-d1",
|
|
"reset:worker:local:kv": "node scripts/reset-cloudflare-state.mjs --local-kv",
|
|
"reset:worker:local:rates": "node scripts/reset-cloudflare-state.mjs --local-rates",
|
|
"deploy:worker": "node scripts/bootstrap-cloudflare.mjs",
|
|
"deploy:worker:r2": "node scripts/bootstrap-cloudflare.mjs --with-r2"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^9.1.2",
|
|
"typescript": "^5.8.3",
|
|
"wrangler": "^4.18.0"
|
|
}
|
|
}
|