how to compile typescript file test.ts in command prompt code example Example: how to run typescript file npx ts-node src/foo.ts