File size: 360 Bytes
0ad74ed |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { writeFileSync } from "fs";
import { resolve } from "path";
import { fileURLToPath } from "url";
const __dirname = fileURLToPath(import.meta.url);
const out_path = resolve(__dirname, "../../../gradio/templates/node/build");
writeFileSync(
resolve(out_path, "package.json"),
JSON.stringify({ name: "gradio-server-app", type: "module" }, null, 2)
);
|