collectPackageJSONCandidates returns framework candidates from package.json deps. Ionic deps are handled earlier in DetectProject (step 2) and excluded here.
(deps map[string]bool)
| 290 | // collectPackageJSONCandidates returns framework candidates from package.json deps. |
| 291 | // Ionic deps are handled earlier in DetectProject (step 2) and excluded here. |
| 292 | func collectPackageJSONCandidates(deps map[string]bool) []detectionCandidate { |
| 293 | var candidates []detectionCandidate |
| 294 | // React-native without expo (expo check would have matched earlier in DetectProject). |
| 295 | if hasDep(deps, "react-native") { |
| 296 | candidates = append(candidates, detectionCandidate{framework: "react-native", qsType: "native"}) |
| 297 | } |
| 298 | if hasDep(deps, "express") { |
| 299 | candidates = append(candidates, detectionCandidate{framework: "express", qsType: "regular"}) |
| 300 | } |
| 301 | if hasDep(deps, "hono") { |
| 302 | candidates = append(candidates, detectionCandidate{framework: "hono", qsType: "regular"}) |
| 303 | } |
| 304 | if hasDep(deps, "fastify") { |
| 305 | candidates = append(candidates, detectionCandidate{framework: "fastify", qsType: "regular"}) |
| 306 | } |
| 307 | return candidates |
| 308 | } |
| 309 | |
| 310 | // detectFromCsproj returns framework and type from .csproj file content. |
| 311 | func detectFromCsproj(content string) (framework, qsType string, found bool) { |