Skip to content

Essential tsconfig.json

Manabu Tokunaga edited this page Mar 16, 2017 · 1 revision

Problem

You want to set up your tsconfig.json quickly for a starter project.

Solution

  • Create a template tsconfig.json by;

    tsc -init

  • Turn on sourceMap, then add "include" like below. If you have more than one directories, you can comma separate paths.

    { "compilerOptions": { "module": "commonjs", "target": "es5", "noImplicitAny": false, "sourceMap": true, "noUnusedLocals": true },

      "include": [
          "./public/typescripts/**/*"
    

    ] }

Clone this wiki locally