(package_manager: &str, script: &str)
| 387 | } |
| 388 | |
| 389 | fn node_script_command(package_manager: &str, script: &str) -> String { |
| 390 | match package_manager { |
| 391 | "pnpm" | "yarn" => format!("{package_manager} {script}"), |
| 392 | "bun" => format!("bun run {script}"), |
| 393 | "npm" if script == "test" => "npm test".to_string(), |
| 394 | "npm" => format!("npm run {script}"), |
| 395 | other => format!("{other} run {script}"), |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | fn file_contains(path: &Path, needle: &str) -> bool { |
| 400 | std::fs::read_to_string(path) |
no outgoing calls
no test coverage detected