herkulessi
herkulessi10mo ago

Hashbang with TS file (without .ts extension)

Hi y'all, I have a few convenience scripts written in Typescript for Deno that all have a wrapper script. I wanted to swap those for simple symplinks to the code, which in turn contains a Hashbang but hit a dead end, because deno seems to assume extensionless files are JS files. Is there a way to tell Deno in the comandline, that it is dealing with a typescript file? Or do I have to either use .ts for all my scripts or keep copying the same wrapper scripts again and again and again?
1 Reply
herkulessi
herkulessi10mo ago
NEVERMIND, scrolling through the docs a bit further would have helped lol --ext=ts in case someone will find this in the future 🙂