tsconfig/legacy/monorepo
tsconfig/legacy/monorepo sets the same options as tsconfig/monorepo,
written out in one file instead of an extends array.
{ "extends": "@repobuddy/typescript/tsconfig/legacy/monorepo", "compilerOptions": { "outDir": "esm", "rootDir": "src" }}Use it when:
- Your TypeScript version is older than 5.0, which added
extendsarrays. - A tool reads your tsconfig and cannot follow an
extendsarray. The package readme names Astro’stsconfig-resolver(withastro/astro#6918).
Options
Section titled “Options”None.
Source
Section titled “Source”{ "compilerOptions": { "composite": true, "declaration": true, "declarationMap": true, "exactOptionalPropertyTypes": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, "module": "Node16", "newLine": "lf", "noPropertyAccessFromIndexSignature": true, "noUncheckedIndexedAccess": true, "noUnusedLocals": true, "noUnusedParameters": true, "resolveJsonModule": true, "sourceMap": true, "strict": true, "target": "ES2020", "useDefineForClassFields": true }}Effective config
Section titled “Effective config”tsc --showConfig (TypeScript 7.0.2) prints the same compilerOptions for this file as for
tsconfig/monorepo, including the four derived options
moduleResolution: node16, moduleDetection: force, preserveConstEnums, and incremental.
Behavior
Section titled “Behavior”- The two presets are kept in sync by hand. Nothing in the package checks that they match.
module: Node16needs TypeScript 4.7 or later.