Describe the enhancement
As of node 23.6, node can run typescript files directly, without ts-node, tsx, etc. Thus, a .ts file with #!/usr/bin/env node can actually be run now, and it would make sense for linguist to detect this as a typescript file. #!/usr/bin/env node --experimental-transform-types works in node ≥22.6, in fact.
(I assume this would be as simple as adding node, and I guess nodejs, to the list of typescript interpreters in languages.yml? I'm not familiar enough with this repository to test that. Edit: Nope, seems like probably not?)
Describe the enhancement
As of node 23.6, node can run typescript files directly, without
ts-node,tsx, etc. Thus, a .ts file with#!/usr/bin/env nodecan actually be run now, and it would make sense for linguist to detect this as a typescript file.#!/usr/bin/env node --experimental-transform-typesworks in node ≥22.6, in fact.(I assume this would be as simple as adding
node, and I guessnodejs, to the list of typescript interpreters inlanguages.yml? I'm not familiar enough with this repository to test that. Edit: Nope, seems like probably not?)