Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

atom-typescript complaining about tsconfig.json--how can I automatically create one?

I just started playing with the "atom-typescript" plugin as referenced here:

Getting Started With TypeScript

The page states that to utilize atom-typescript, we literally just need to:

Now create a new .ts TypeScript file and start hacking away. AtomTS will take care of compiling it to .js and create a default tsconfig.json TypeScript project file for you.

This is not the case as I've created a simple directory structure and when attempting to build any *.ts file receive the following error:

No project file found.  Please use the 'Create tsconfig.json profile file' command

The error states I need to utilize the 'Create tsconfig.json project file' command--I simply cannot locate this command.

I understand I can create the file manually but I would like to know if / where the file can be created automatically. Thanks!

like image 377
cjones26 Avatar asked Aug 26 '15 17:08

cjones26


People also ask

What is the use of Tsconfig json file in TypeScript?

The presence of a tsconfig. json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig. json file specifies the root files and the compiler options required to compile the project.

Where is Tsconfig json is located?

The tsconfig. json is generally put in the root folder of the project.


1 Answers

Type cmd(ctrl)+shift+p to bring up the list of commands and then tsconfig to find the command to generate the tsconfig.json file.

like image 193
Jesse Good Avatar answered Oct 08 '22 00:10

Jesse Good