railyard/apps/ritgram/backend/tsconfig.json
caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

50 lines
2.2 KiB
JSON

{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
// TS7.0 turns the legacy "node" (node10) resolver into a hard error. We keep
// node10 semantics intentionally (CommonJS output) and silence the pre-7.0
// deprecation so `tsc --noEmit` stays green until a deliberate resolver bump.
// "6.0" is not a value the pinned typescript@^5.9.3 (see package.json)
// recognizes -- it hard-errors with TS5103 and the project fails to build
// or even boot via ts-node at all. "5.0" is the value this TS major
// actually accepts for this flag.
"ignoreDeprecations": "5.0",
"typeRoots": ["./node_modules/@types"],
"declaration": true,
"declarationMap": true,
"sourceMap": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "tests"],
// `npm run dev` (nodemon --exec ts-node) refused to boot at all: this is an
// npm workspaces monorepo, and express-rate-limit is only hoisted to the
// *root* node_modules, not nested under backend/node_modules. Its own type
// declarations resolve `express` by walking up from where the package
// actually lives, so they land on the root's hoisted express@4 (and its
// @types/express-serve-static-core@4.19.8) instead of this package's own
// pinned express@5.1.0 / @types/express@5.0.5 -- producing a real-looking
// but spurious "RateLimitRequestHandler not assignable to Application"
// type error on every `app.use(limiter)` call. `npx tsc`/`tsc --noEmit`
// (the actual build + CI gate) do NOT hit this: they resolve cleanly and
// stay the source of truth for real type errors. `transpileOnly` makes the
// dev-loop ts-node process behave the same way most Node teams run
// ts-node in watch mode -- strip types fast, don't re-typecheck on every
// save -- so `npm run dev` boots instead of crashing on a cross-package
// typings collision that isn't a real bug in this project's own code.
"ts-node": {
"transpileOnly": true
}
}