Configure TypeScript for your project
The tsconfig.json file contains a default configuration of the TypeScript compiler.
For a Node.js or NativeScript project the tsconfig.json should look like :
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"sourceMap":true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"exclude": [
"node_modules"
]
}
More details on the compiler options at http://www.typescriptlang.org/docs/handbook/tsconfig-json.html and http://www.typescriptlang.org/docs/handbook/compiler-options.html