The chain and the merged config
--config
tsc applies the files from top to bottom, and a later file wins. Select a file to see only its settings.
tsc --showConfig
| Option | Value | Set by |
|---|
Flags against code
Switch a flag to see which code it refuses. Each result is a real run of the TypeScript compiler on this sample, made at build time with the preset of your config. The page shows the errors of all compiler phases together.
What init writes
This panel calls the real createPackageTemplate, merge and validate of the package in your browser. It writes no file.
How it works
- 1
One file has the rules
shared.jsonhas the strict flags. Each other preset gets them throughextends. - 2
Small files add one concern
esm.jsonandcommonjs.jsonset the module system.lib.jsonsets the paths. - 3
Your project extends one preset
initwrites atsconfig.jsonwith oneextendsline. Paths with${configDir}resolve from your project. - 4
This page reads the real files
The build reads
tsconfig/, starts the real CLI and startstsc. The page shows that record and types none of it by hand.
Install
npm install --save-dev @mark1russell7/ts-base
npx @mark1russell7/ts-base init my-lib
# Change the config of an existing project.
npx @mark1russell7/ts-base set-tsconfig frontend
The package needs Node.js 25 or later.