Add QL test for bun/tsx shebang recognition in TypeScript files

Add test files with #!/usr/bin/env bun, #!/usr/bin/env tsx, and
#!/usr/bin/env node shebangs. The query lists extracted .ts files,
verifying that all three shebangs are recognized and the files are
not skipped by the extractor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Asger F
2026-03-12 09:46:35 +01:00
parent 84d1828a9c
commit b8c44be599
6 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
| shebang_bun.ts |
| shebang_node.ts |
| shebang_tsx.ts |
| tsconfig.json |

View File

@@ -0,0 +1,4 @@
import javascript
from File f
select f.getRelativePath()

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bun
const x: number = 1;

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env node
const x: number = 1;

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env tsx
const x: number = 1;

View File

@@ -0,0 +1,3 @@
{
"include": ["."]
}