Apologies if this question has been asked before, but could someone please redirect me to the relevant thread if so. I am wondering if it is possible to set up VS Code's "tasks.json" to automatically compile all .ts files within a folder. Currently, I am only able to manually add specific .ts files like this:
"args": [ HelloWorld.ts ],
While this works for compiling HelloWorld.ts, I am struggling to configure tasks.json in a way that compiles all .ts files in the directory.
I have followed tutorials suggesting to remove "HelloWorld.ts", but this does not result in any .ts files being compiled at all.
Below is my current tasks.json configuration in VS 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"
}