Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
/** `VERSION` managed by */export const VERSION = "0.9.4";
/** `prepublish` will be invoked before publish */export async function prepublish(version: string): Promise<boolean> { const p ={ cmd: ["deno", "run", "-A", "build.ts"], stdout: "inherit", stderr: "inherit", }); const { success } = await p.status(); if (success) { const toml = await Deno.readTextFile("./Cargo.toml"); await Deno.writeTextFile( "./Cargo.toml", toml.replace(/version = "[\d\.]+"/, `version = "${version}"`), ); } p.close(); return success;}