I'm following a course, and it first showed me how to use the tsc option --outDir to specify where the compiler writes its compiled code. The it showed me how to use the tsc --init to create a tsconfig.json file, and then how to uncomment "compilerOptions": "outDir": "./dist", to tell the compiler where to always write output to for this app.
Yet after doing that, when I run tsc app.ts, it writes app.js straight to the root directory of the app, right next to app.ts. Only when I run it without a filename, just as tsc, i.e. for all files, does it create and output to dist. Even after dist exists, running tsc with a filename makes the compiler output the file to the root of the app.