Tsconfig.json
tsconfig.json is a TypeScript project configuration file specifying compiler options, source files, type libraries, and related compilation settings.
Essential TypeScript 5, Third Edition
A tsconfig.json file is a TypeScript project configuration file that specifies settings used by the TypeScript compiler.
- How it is used
- Configures how tsc selects TypeScript files and generates JavaScript for a project.
- How deep it goes
- Explains core options, file-selection controls, and inspection with --listFiles; introduces specialized settings through project configurations.
- Examples
- Shows src-to-dist configurations, tsc and Node.js commands, a Node16 module setup, and Angular compiler settings.
- What you can do after
- Operate/configure it to separate source from output, choose compilation settings, and inspect selected files with tsc --listFiles.
Read how Essential TypeScript 5, Third Edition explains tsconfig.json →
Secrets of the JavaScript Ninja, Third Edition
A JSON configuration file that specifies TypeScript compiler inputs, type libraries, checking settings, emission behavior, and the target ECMAScript version.
- How it is used
- Configures which TypeScript files the compiler checks and compiles, available types, checking strictness, JavaScript emission, and ECMAScript target.
- How deep it goes
- Defines key compiler settings and demonstrates starter generation and default compilation, while deferring comprehensive option guidance.
- Examples
- Uses generated compiler defaults, a faulty setTimeout call, and JavaScript checked with @ts-check.
- What you can do after
- Operate/configure a TypeScript project by generating tsconfig.json and running tsc to check and emit included files.
Read how Secrets of the JavaScript Ninja, Third Edition explains tsconfig.json →
Also covered in
- Web Component Development with Modern Libraries and ToolingIn early access (MEAP)
What to know first
- packageA software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
Related concepts
- TypeScript compilerconfigures · The TypeScript compiler analyzes and checks TypeScript source code and can emit JavaScript and declaration files.
- module settingconfigures · A TypeScript compiler configuration option that specifies the module format of the emitted code.
- CommonJSconfigures · CommonJS is a JavaScript module-system specification that defines how modules export and load values, traditionally using synchronous require calls and module.exports assignments.
- JavaScriptconfigures · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Questions about tsconfig.json
What is tsconfig.json?
tsconfig.json is a TypeScript project configuration file specifying compiler options, source files, type libraries, and related compilation settings.
Which Manning books explain tsconfig.json?
Essential TypeScript 5, Third Edition and Secrets of the JavaScript Ninja, Third Edition.
What should I know before learning tsconfig.json?
Manning books that teach tsconfig.json usually introduce package first.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

