Skip to content

Consider supporting .ts files with node shebang #7348

Description

@marcustyphoon

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?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions