(outputPath: string, contents: string | Buffer)
| 514 | await copyFile(sourcePath, destination); |
| 515 | } |
| 516 | async writeFile(outputPath: string, contents: string | Buffer): Promise<void> { |
| 517 | const destination = join(this.outputRoot, outputPath); |
| 518 | this.logger.log(destination); |
| 519 | await prepareOutput(destination); |
| 520 | if (existsSync(destination)) throw new Error(`file conflict: ${outputPath}`); |
| 521 | await writeFile(destination, contents); |
| 522 | } |
| 523 | async writeBuildManifest(buildManifest: BuildManifest): Promise<void> { |
| 524 | const destination = join(this.cacheDir, "_build.json"); |
| 525 | await prepareOutput(destination); |
nothing calls this directly
no test coverage detected