mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
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:
@@ -0,0 +1,4 @@
|
||||
| shebang_bun.ts |
|
||||
| shebang_node.ts |
|
||||
| shebang_tsx.ts |
|
||||
| tsconfig.json |
|
||||
@@ -0,0 +1,4 @@
|
||||
import javascript
|
||||
|
||||
from File f
|
||||
select f.getRelativePath()
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bun
|
||||
const x: number = 1;
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
const x: number = 1;
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env tsx
|
||||
const x: number = 1;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"include": ["."]
|
||||
}
|
||||
Reference in New Issue
Block a user