DenReg/cli/pre.ts
Fabian Stamm 2ee628544e
All checks were successful
continuous-integration/drone/push Build is passing
Add automatic version reading
2020-08-16 19:37:09 +02:00

9 lines
182 B
TypeScript

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