MCPcopy Create free account
hub / github.com/btd/rollup-plugin-visualizer / writeReport

Function writeReport

plugin/cli/report.ts:93–101  ·  view source on GitHub ↗
(filename: string, fileContent: string)

Source from the content-addressed store, hash-verified

91};
92
93export const writeReport = async (filename: string, fileContent: string): Promise<void> => {
94 await fs.mkdir(path.dirname(filename), { recursive: true });
95 try {
96 await fs.unlink(filename);
97 } catch {
98 // ignore
99 }
100 await fs.writeFile(filename, fileContent);
101};

Callers 1

runCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected