DenReg/cli/pre.ts

9 lines
182 B
TypeScript
Raw Normal View History

2020-08-16 17:37:09 +00:00
import { FS } from "./deps.ts";
const meta = (await FS.readJson("./meta.json")) as any;
await Deno.writeTextFile(
"version.ts",
`export const version = "${meta.version}"`
);