Logging/deno_build.js
Fabian Stamm 96d7808f35 V3
2021-05-08 21:47:00 +02:00

9 lines
285 B
JavaScript

const pkg = JSON.parse(await Deno.readTextFile("package.json"));
const meta = JSON.parse(await Deno.readTextFile("meta.json"));
meta.version = pkg.version;
await Deno.copyFile("README.md", "esm/README.md");
await Deno.writeTextFile("meta.json", JSON.stringify(meta, undefined, 3));