TypeScript with React: Configuring the TypeScript Compiler

Configuring the TypeScript Compiler

To generate a special file called tsconfig.json with compilation rules run: tsc --init.

Next tell the compiler where our source code is and where the output should go (in 'tsconfig.json'): { "compilerOptions": { "rootDir": "src", "outDir": "build" }, }.

Related concepts

Configuring the TypeScript Compiler

TypeScript with React: Configuring the TypeScript Compiler — Structure map

Clickable & Draggable!

TypeScript with React: Configuring the TypeScript Compiler — Related pages: