Files
token-circles/worker/package.json
Komediruzecki 1ed7e7a893 feat(mail): the account mails are on the new layout; the mails that show money are not
The link to a new address, the notice to the old one, "already has an
account", the password reset, the sign-in code, the test mail and the
support reply render through renderMail, with their facts kept and no em
dashes. The notice to the old address says what was asked in one sentence
and the one thing to do. "Already has an account" offers Sign in and Reset
password. The sign-in code is large and monospaced and still first in the
subject. The test mail and the support reply drop the " - Token Circles"
subject suffix, and the test mail no longer says reminders look like it.

The budget alert, the spending report, upcoming bills and the failed
payment stay on the first shell word for word (maff's call of 2026-10-11),
and so do the two billing mails that show no amount.

worker/scripts/mail-samples.ts renders every mail from plainly fake data.
worker/test/mail-catalogue.test.ts checks that every renderer has a sample,
snapshots every subject, holds every mail under 102 KB with a text twin,
keeps em dashes off the new layout, and pins the six unchanged mails to
digests taken before this change. The worker typecheck covers scripts/.
2026-10-11 17:30:25 +02:00

53 lines
2.0 KiB
JSON

{
"name": "finance-manager-worker",
"private": true,
"type": "module",
"description": "Cloudflare Worker + D1 API scaffold for Finance Manager (preparation; not yet live).",
"license": "AGPL-3.0-only",
"scripts": {
"dev": "wrangler dev",
"deploy:dev": "wrangler deploy --env dev",
"deploy:prod": "wrangler deploy --env prod",
"d1:create:dev": "wrangler d1 create finance-manager-dev",
"d1:create:prod": "wrangler d1 create finance-manager",
"d1:migrate:local": "wrangler d1 migrations apply finance-manager --local",
"d1:migrate:dev": "wrangler d1 migrations apply finance-manager-dev --remote --env dev",
"d1:migrate:prod": "wrangler d1 migrations apply finance-manager --remote --env prod",
"d1:exec:local": "wrangler d1 execute finance-manager --local --command",
"r2:create:dev": "wrangler r2 bucket create finance-manager-receipts-dev",
"r2:create:prod": "wrangler r2 bucket create finance-manager-receipts",
"secret:dev": "wrangler secret put JWT_SECRET --env dev && wrangler secret put GOOGLE_CLIENT_SECRET --env dev && wrangler secret put TURNSTILE_SECRET --env dev",
"secret:prod": "wrangler secret put JWT_SECRET --env prod && wrangler secret put GOOGLE_CLIENT_SECRET --env prod && wrangler secret put TURNSTILE_SECRET --env prod",
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts",
"cf-typegen": "wrangler types",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@simplewebauthn/server": "^14.0.3",
"hono": "^4.13.12",
"pdf-lib": "^1.17.1",
"postal-mime": "^3.0.0",
"xlsx": "file:../vendor/xlsx-0.20.3.tgz",
"zod": "^4.6.5"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "0.22.0",
"@cloudflare/workers-types": "^5.20261002.1",
"typescript": "^5.7.2",
"vitest": "4.1.11",
"wrangler": "4.126.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"workerd",
"@cloudflare/workerd-linux-64",
"esbuild"
],
"overrides": {
"sharp@<0.35.5": "0.35.5",
"undici@<7.29.1": "7.29.1"
}
}
}