()
| 91 | Err(e) if e.kind() == std::io::ErrorKind::NotFound => {} |
| 92 | Err(e) => eprintln!("warning: could not fully clean `{}`: {e}", wasm_target_dir.display()), |
| 93 | } |
| 94 | true |
| 95 | } |
| 96 | |
| 97 | pub fn is_build_corrupted(path: PathBuf) -> bool { |
| 98 | let Ok(js) = std::fs::read_to_string(&path) else { |
| 99 | return false; |
| 100 | }; |
| 101 | js.contains("from \"env\"") || js.contains("from 'env'") |
nothing calls this directly
no test coverage detected