(fileText: string)
| 720 | |
| 721 | /** Check if a file's imports indicate it uses an HTTP server framework */ |
| 722 | export function hasHttpServerImport(fileText: string): boolean { |
| 723 | const lower = fileText.toLowerCase(); |
| 724 | return HTTP_SERVER_PACKAGES.some(pkg => lower.includes(pkg)); |
| 725 | } |
| 726 | |
| 727 | /** Check if a file path matches a route file convention. Returns matching convention or null. */ |
| 728 | export function matchRouteFileConvention(filePath: string): typeof ROUTE_FILE_CONVENTIONS[0] | null { |
nothing calls this directly
no outgoing calls
no test coverage detected