tell typescript to compile json files
<p>The typescript compiler works fine when I import a json file using</p>

<pre><code>const tasks = require('./tasks.json')
</code></pre>

<p>However, when I run <code>tsc</code>, the output directory does not contain no <code>tasks.json</code> file, causing a runtime error.</p>

<p>Is there a way to tell the compiler that it should copy all json files, or should I manually copy/paste all my json files into the <code>dist</code> directory ?</p>

<p>my tsc compilerOptions currently reads</p>

<pre><code>  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "sourceMap": true,
    "noImplicitAny": true,
    "removeComments": false,
    "outDir": "./dist/",
    "sourceMap": true,
    "pretty": true,
    "noImplicitThis": true,
    "strictNullChecks": true,
    "sourceMap": true
  },
</code></pre>

<p>Thanks !</p>