Categories
TypeScript Answers

How to generate a tsconfig.json file with TypeScript?

Spread the love

Sometimes, we want to generate a tsconfig.json file with TypeScript.

In this article, we’ll look at how to generate a tsconfig.json file with TypeScript.

How to generate a tsconfig.json file with TypeScript?

To generate a tsconfig.json file with TypeScript, we run tsc --init.

We type

tsc --init

in the command line after we switched to the TypeScript project folder to create a tsconfig.json file.

Conclusion

To generate a tsconfig.json file with TypeScript, we run tsc --init.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *