Improve TypeScript shebang detection (#31437)

Closes #13981

Release Notes:

- Improved TypeScript shebang detection
This commit is contained in:
Umesh Yadav
2025-05-30 16:11:13 -04:00
committed by GitHub
parent a78563b80b
commit 32214abb64
+1 -1
View File
@@ -1,7 +1,7 @@
name = "TypeScript"
grammar = "typescript"
path_suffixes = ["ts", "cts", "mts"]
first_line_pattern = '^#!.*\b(?:deno run|ts-node|bun|tsx)\b'
first_line_pattern = '^#!.*\b(?:deno run|ts-node|bun|tsx|[/ ]node)\b'
line_comments = ["// "]
block_comment = ["/*", "*/"]
autoclose_before = ";:.,=}])>"