How to create the config files ( tsconfig.json, typings.json, package.json)?

I can copy these files from the

But I would like to know more about these files.

How can we create it manually?

From where I can know more about these files?

Leave a Reply

2 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
newest oldest most voted
Notify of

package.json includes information about packages and libraries which are used by your project, also can include npm scripts which helps of running tasks of application like running tests, building js and so on… npm init to init new package.json file docs: npm docs tsconfig.json provides information about compiling process typescript into javascript. In which version should be compiled ts, should js files include source maps, and such information usually described in this file. tsc --init to init new tsconfig.json file docs: tsconfig docs typings.json includes references to definition type files for the external library, it helps your app to be… Read more »


In TypeScript 2.0, typings.json is not necessary.

Getting and using declaration files in 2.0 is much easier. To get declarations for a library like lodash, all you need is npm:

npm install --save @types/lodash

You can install typings as:

npm i -S @types/core-js @types/jasmine @types/node

The packages.json will add:

"@types/core-js": "^0.9.43",
"@types/jasmine": "^2.8.2",
"@types/node": "^8.5.2",