Kodkitabi

tsconfig ve Compiler Options

tsconfig.json anahtar ayarları: strict, noImplicitAny, strictNullChecks, isolatedModules, target, module, moduleResolution, paths, baseUrl, declaration, composite. Hangi ayarın hangi senaryoda gerekli olduğu ve üretim için önerilen konfigürasyonlar.

tsconfig örneği
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "declaration": true,
    "outDir": "dist",
    "baseUrl": ".",
    "paths": { "@app/*": ["src/*"] }
  },
  "include": ["src"]
}