How to configure VS Code's "tasks.json" to build all .ts files
<p>Its possible this has been asked before if so I am sorry for the duplicate post simply redirect me to the other thread.</p>

<p>Is it possible to configure VS Code's <strong>"tasks.json"</strong> to <strong>compile all .ts files in the folder</strong>. I know I can add the path to the .ts file manually like this:</p>

<pre><code>"args": [ HelloWorld.ts ],
</code></pre>

<p>and it does compile the HelloWorld.ts correctly but I cannot figure out how to setup the tasks.json that all.ts files in the folder are compiled.</p>

<p>I have looked at some tutorials which all suggest to simply remove the "HelloWorld.ts" but that does not work as no .ts files are compiled at all.</p>

<p>Here is the entire tasks.json file that I have in VS Code:</p>

<pre><code>{
    "version": "0.1.0",

    // The command is tsc. Assumes that tsc has been installed using npm install -g typescript
    "command": "tsc",

    // The command is a shell script
    "isShellCommand": true,

    // Show the output window only if unrecognized errors occur.
    "showOutput": "always",

    // args is the HelloWorld program to compile.
    "args": [ "HelloWorld.ts" ],

    // use the standard tsc problem matcher to find compile problems
    // in the output.
    "problemMatcher": "$tsc"
}
</code></pre>