DenReg/cli/pre.ts
Fabian Stamm 22a447604b
All checks were successful
continuous-integration/drone/push Build is passing
Update to work with newer deno versions
2021-04-15 17:20:09 +02:00

9 lines
205 B
TypeScript

import { FS } from "./deps.ts";
const meta = (await Deno.readTextFile("./meta.json").then(JSON.parse)) as any;
await Deno.writeTextFile(
"version.ts",
`export const version = "${meta.version}"`
);