In visual studio, I can add .ts files to the project, and select typescript compile as the build action. Nice.
But the resulting .js file is not copied to build folder, regardless of the Copy to Output Directory option. Neither is the original ts file by the way.
How does one compile and copy the resulting file to the build folder?
Just for context, I need to read those files as text to send to a testing browser.
I have made it work by adding the js file to the project and setting copy to output on that file, but is there any guarantee that the ts file will be compiled before the js file is copied? I am down to checking every time, but there has to be a way.
tsconfig.jsonand set"outDir"