(codeFile: PathLike, compilerOptions: CompileOptions = {})
| 104 | * @throws If the file cannot be read, or if the source contains a compilation error. |
| 105 | */ |
| 106 | export function compileFile(codeFile: PathLike, compilerOptions: CompileOptions = {}): Artifact { |
| 107 | const code = fs.readFileSync(codeFile, { encoding: 'utf-8' }); |
| 108 | return compileString(code, compilerOptions); |
| 109 | } |
| 110 | |
| 111 | export function parseCode( |
| 112 | code: string, |
no test coverage detected