relocateTranscript
Supporting contract not directly exported; use TypeScript inference or the public type that references it.
Purpose and behavior
Section titled “Purpose and behavior”Return transcript text in which every cwd value equal to source becomes destination; without source, the first cwd recorded in the text is replaced. Lines that are not JSON are kept as they are, and no file is read or written.
Parameters and properties
Section titled “Parameters and properties”textRequiredstringNative transcript contents to rewrite.destinationRequiredstringPath written in place of each matching cwd value.sourceOptionalstring | undefinedRecorded cwd value to replace; defaults to the first cwd recorded in text.