artifacts.mjs 179 B

123456
  1. import { writeFile } from "node:fs/promises";
  2. export async function writeJsonFile(path, value) {
  3. await writeFile(path, `${JSON.stringify(value, null, 2)}\n`);
  4. return path;
  5. }