Completes the JS→TS server migration. server.js → server.cts (Node type-stripping, no build step), and every launch/config reference now points at it: package.json (main/dev:api/start/check:server) and the Docker CMD. scripts/seedDemoData.js is required at runtime by routes/user.cts, so it crosses into the server runtime — migrated to .cts and its require of db/database updated to the .cts path. The remaining scripts/*.js are standalone dev/ops tooling (outside the runtime and the check:server boundary); their stale extensionless requires of now-.cts modules were repaired so they still run, and the PM2 ecosystem config entry point was updated to server.cts. Verified: 0 runtime .js remain in the server tree; typecheck:server and check:server clean; 226/226 tests pass; `node server.cts` boots and /api/health returns 200. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docker-push.sh | ||
| docker-test.sh | ||
| ecosystem.config.js | ||
| migrate-db.js | ||
| pipeline-report.py | ||
| prod-smoke.js | ||
| prod-smoke.sh | ||
| seedDemoData.cts | ||
| server-setup.sh | ||
| test-cookie-options.js | ||
| test-import-fixture.xlsx | ||
| test-import-multi-fixture.xlsx | ||
| test-import.js | ||
| test-oidc-smoke.js | ||