* Write meta.json to the output directory.
(metaJson: string)
| 277 | * Write meta.json to the output directory. |
| 278 | */ |
| 279 | async writeMeta(metaJson: string): Promise<void> { |
| 280 | try { |
| 281 | const metaPath = this.quotePath(`${this.outputDir}/meta.json`); |
| 282 | await execBuffered(this.runtime, `cat > ${metaPath} << 'METAEOF'\n${metaJson}\nMETAEOF`, { |
| 283 | cwd: FALLBACK_CWD, |
| 284 | timeout: 10, |
| 285 | }); |
| 286 | } catch (error) { |
| 287 | log.debug(`RuntimeBackgroundHandle.writeMeta: Error: ${errorMsg(error)}`); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | async getOutputFileSize(): Promise<number> { |
| 292 | try { |
nothing calls this directly
no test coverage detected