BillTracker/scripts
null abb9f7d443 fix(migration): repair server.js/.cts launch + require refs missed in the JS→TS migration
Full-deployment QA against a copy of the real DB surfaced launch/require
references the server .cts migration didn't update. All are non-source
tooling/edge paths, which is why typecheck/check/tests stayed green:

- e2e/setup/prepare-db.js: require('../../db/database') and
  require('../../scripts/seedDemoData') → .cts. This broke `npm run
  test:e2e*` entirely (harness couldn't load). [material]
- playwright.config.js + scripts/prod-smoke.sh: webServer/boot command
  `node server.js` → `node server.cts`. Also blocked the e2e + prod-smoke
  suites. [material]
- setup/firstRun.js → .cts, require('../services/auditService') → .cts,
  and server.cts call site → require('./setup/firstRun.cts'). Latent:
  server.cts only reaches firstRun when userCount===0, but database.cts
  auto-seeds a default admin during getDb() first, so the path isn't hit
  in normal boot — fixed defensively so it can't crash if ever reached.
- .env.example: doc reference `node server.js` → server.cts.

Verified: typecheck:server + check:server clean; server test suite
226/226; e2e probe 17/17 (was 0 — suite couldn't boot before); the
production Docker image builds and boots on a copy of the real
production DB (44 bills, 1159 payments) with /api/health 200 and all 64
page endpoints returning 2xx.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 12:05:40 -05:00
..
docker-push.sh v0.27.02 push 2026-05-14 21:00:07 -05:00
docker-test.sh v0.25.0: roadmap redesign, import CSRF fix, AdminDashboard removed 2026-05-11 21:42:36 -05:00
ecosystem.config.js refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00
migrate-db.js refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00
pipeline-report.py feat: merge pipeline workflow into bill-tracker (batch v0.36.0) 2026-06-03 20:28:37 -05:00
prod-smoke.js test(qa): production-build smoke (B15) — validates split chunks at runtime 2026-07-02 21:45:25 -05:00
prod-smoke.sh fix(migration): repair server.js/.cts launch + require refs missed in the JS→TS migration 2026-07-06 12:05:40 -05:00
seedDemoData.cts refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00
server-setup.sh initial commit 2026-05-03 19:51:57 -05:00
test-cookie-options.js refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00
test-import-fixture.xlsx initial commit 2026-05-03 19:51:57 -05:00
test-import-multi-fixture.xlsx initial commit 2026-05-03 19:51:57 -05:00
test-import.js refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00
test-oidc-smoke.js refactor(server): migrate app entry point to TypeScript (.cts) — server migration 100% 2026-07-06 11:41:56 -05:00