Transpile a TypeScript file to JavaScript without executing it

ts-node

ts-node --transpile-only {{path/to/file.ts}}

click the source code to copy install ts-node on any operating system with command-not-found.com