typescript-config — Optimization
Extend the runtime preset
Section titled “Extend the runtime preset”Extend node.json for a backend package, react.json for a React library or next.json for a Next.js app.
Retain checked indexed access
Section titled “Retain checked indexed access”Inherit strict and noUncheckedIndexedAccess from base.json when customizing project includes and output paths.
Choose emit behavior
Section titled “Choose emit behavior”The React preset emits declarations only. The Next.js and Vite presets set noEmit, so use the preset suited to the build pipeline.
Include the intended sources
Section titled “Include the intended sources”Set include and output paths for the consuming project. The Node preset defaults to src/**/*.ts and excludes dist and node_modules.