Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create tsconfig.json file in angular2 project?

I have created one angular2 project using npm. I was referring this link: Angular2 Tutorial

I succeessfully created the package.json file using npm init command. But I didnt find any command to create tsconfig.json file. I am not sure that should I create that file using command or using editor? Thanks in advance.

like image 608
Bhushan Gadekar Avatar asked Dec 08 '22 00:12

Bhushan Gadekar


1 Answers

Invoking the TypeScript compiler with the init option will create a new tsconfig.json in the current directory

tsc --init
like image 191
Vadim Macagon Avatar answered Dec 11 '22 09:12

Vadim Macagon