export const VERSION = "1.0.0-alpha.17";export const VERSION_REGEX = /\/\/deno\.land\/x\/mesozoic@v[\w\.\-]+\//;
export async function prepublish(version: string) { const newDenoLandVersion = `//deno.land/x/mesozoic@v${version}/`;
const readme = await Deno.readTextFile("./README.md");
console.log("Patching README.md"); await Deno.writeTextFile( "./README.md", readme.replace( VERSION_REGEX, newDenoLandVersion, ), );}
export function postpublish(version: string) { console.log("Upgraded to", version);}