- tsconfig (allowJs, strict .ts), npm run build -> dist/, typecheck, dev via tsx, ts-jest. - src/index.js is now a launcher (dist build when it matches, else tsx); server moved to app.js. - /api/v2: defineRoute with zod -> request validation, response stripping, OpenAPI 3.1 at /docs/v2; one error shape and one paged-list shape. First endpoints: events, event, me, my registrations. - deploy.sh/install.sh build the backend; rollback to older releases skips the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
26 lines
808 B
JSON
26 lines
808 B
JSON
{
|
|
// The backend is moving to TypeScript a file at a time (1.51.0): .js files are compiled as they
|
|
// are (not type-checked), .ts files are checked strictly. `npm run build` writes dist/, which is
|
|
// what production runs (dist/index.js); dev and the e2e tests run src/ through tsx.
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"lib": ["ES2023"],
|
|
"rootDir": "src",
|
|
"outDir": "dist",
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"strict": true,
|
|
"noImplicitOverride": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"sourceMap": true,
|
|
"types": ["node", "jest"]
|
|
},
|
|
"include": ["src"]
|
|
}
|