← back to flaviocopes.com

tsconfig.json generator

← All tools

Six questions → a commented tsconfig.json you can copy. Based on TypeScript 5.x defaults for browser, Node, or library projects.

~~~
~~~

About this tool

A good tsconfig depends on where code runs (browser vs Node vs npm package) and how modules are resolved (bundler vs tsc emit vs Node native ESM). This generator picks sensible TypeScript 5.x options and explains each one inline.

If you use path aliases, mirror them in Vite/webpack too — tsconfig paths alone do not change what your bundler resolves.

~~~

Read more