Adds: - tsconfig.json with allowJs:true, checkJs:false, strict:false, noEmit:true (module/moduleResolution: node16). Backend + scripts in scope; public/, client/, android/, mobile/ excluded. - typescript@6.0.3 + @types/express@^4 + @types/multer@^1 + @types/cors, @types/cookie-parser, @types/jsonwebtoken as devDependencies. - npm script: typecheck → tsc --noEmit (passes clean). Production unchanged — start command still 'node server.js'. Any new file written as .ts is type-checked but nothing forces it. Rollback point for the migration arc: - pre-ts-migration-2026-04-26 (this commit's parent — pre-scaffold) - ts-phase-0-2026-04-27 (this commit — scaffold installed, runtime unchanged)
38 lines
665 B
JSON
38 lines
665 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "node16",
|
|
"moduleResolution": "node16",
|
|
"lib": ["ES2022"],
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"skipLibCheck": true,
|
|
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
|
|
"noEmit": true,
|
|
|
|
"strict": false,
|
|
"noImplicitAny": false,
|
|
"strictNullChecks": false,
|
|
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": false
|
|
},
|
|
"include": [
|
|
"server.js",
|
|
"src/**/*",
|
|
"test/**/*",
|
|
"scripts/**/*"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"public",
|
|
"dist",
|
|
"e2e/node_modules",
|
|
"android",
|
|
"client",
|
|
"mobile"
|
|
]
|
|
}
|