pub fn diagnose(
tsc_output: &str,
emit_root: &Path,
snapshots: &[(PathBuf, String)],
display_root: &Path,
) -> Option<ProjectFailure>Expand description
Build the diagnostics for a failed tsc run, or None when its output holds
no error TS record (a crash, an out-of-memory, a missing install): that is a
toolchain failure, not evidence of a compiler bug, and the caller reports the
raw output as it always did.
emit_root is the directory the TypeScript (and its .maps) was written to;
snapshots and display_root are the build’s, so the Bynk file renders with
source context.