Files
elegalsoftware/apps/api/package.json
T
Leon SerfatyandClaude Fable 5 d9b807662a
CI / build-and-test (push) Has been cancelled
Add e2e auth test suite, retention crons, and email-verification UX
- E2E suite (23 tests, `npm run test:e2e -w @lawdesk/api`): boots the real
  Fastify app against a disposable Dockerized Postgres (never a real DB) and
  covers signup/login/lockout/rate limits, CSRF (incl. forged-token
  rejection), logout, password reset, email verification, the superadmin
  verified-email promotion gate, and cross-firm tenancy isolation
- packages/db: DATABASE_SSL=disable opt-out for local/test databases that
  don't speak TLS; refused in production
- retention-sweep.ts cron enforcing Privacy Policy windows (sessions,
  tokens, login attempts, tool usage, contact messages, audit log) +
  sweep-orphaned-storage.ts Spaces reconciliation + scripts/README
- Expose emailVerified on the session user; in-app verify-email banner
  with resend, and verified=1|0 toasts on the login page
- Silence Fastify logger under NODE_ENV=test; fix footer resource link;
  document login-attempt/tool-usage retention in the Privacy Policy

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 14:32:55 -04:00

49 lines
1.3 KiB
JSON

{
"name": "@lawdesk/api",
"version": "0.1.0",
"private": true,
"type": "module",
"main": "./src/server.ts",
"scripts": {
"dev": "tsx watch src/server.ts",
"build": "tsc -p tsconfig.json --noEmit",
"start": "tsx src/server.ts",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "vitest run -c vitest.e2e.config.ts",
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1088.0",
"@aws-sdk/s3-request-presigner": "^3.1088.0",
"@fastify/cookie": "^11.0.1",
"@fastify/cors": "^10.0.1",
"@fastify/helmet": "^12.0.1",
"@fastify/multipart": "^9.0.1",
"@fastify/rate-limit": "^10.2.1",
"@fastify/static": "^8.0.3",
"@lawdesk/db": "*",
"@sentry/node": "^8.45.0",
"argon2": "^0.41.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.36.4",
"fastify": "^5.1.0",
"fastify-plugin": "^5.0.1",
"fastify-type-provider-zod": "^4.0.2",
"pdfkit": "^0.15.0",
"pg": "^8.13.1",
"pino": "^9.5.0",
"stripe": "^17.4.0",
"tsx": "^4.19.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^22.9.1",
"@types/pdfkit": "^0.13.5",
"@types/pg": "^8.11.10",
"pino-pretty": "^11.3.0",
"typescript": "^5.6.3",
"vitest": "^3.2.7"
}
}