How can I configure Visual Studio Code to compile typescript files on save? 

I see it is possible to configure a task to build the file in focus using the `${file}` as an argument. But I would like this to be done when a file is saved.