I had an issue where my js files were automatically put in the /src folder and not in /dist when writing tsc in terminal. I had set up the tsconfig.json file correctly.
Turns out I did not press save in VSCode after making changes to tsconfig.json file... After this it worked and my js files went to /dist file instead of the src file.