diff --git a/boxes/bin.js b/boxes/bin.js index df9557a8c591..38248a5677cb 100755 --- a/boxes/bin.js +++ b/boxes/bin.js @@ -11,9 +11,9 @@ import { init } from "./scripts/init.js"; const getLatestStable = async () => { const { data } = await axios.get( - `https://api.github.com/repos/AztecProtocol/aztec-packages/releases` + `https://api.github.com/repos/AztecProtocol/aztec-packages/releases`, ); - return data[0].tag_name.replace(/^v/, ""); + return data[0].tag_name.replace(/^v/, "").replace(/-.*$/, ""); }; program @@ -43,7 +43,7 @@ program }, level: debug ? "debug" : "info", }, - prettyStream + prettyStream, ); global.debug = (msg) => logger.debug(msg); @@ -100,11 +100,11 @@ program .description("An Aztec project with a built-in development network") .option( "-t, --project-type ", - "the type of the project to clone ('app' or 'contract')" + "the type of the project to clone ('app' or 'contract')", ) .option( "-n, --project-name ", - "the name of the project to clone" + "the name of the project to clone", ) .action(async (options) => { // this is some bad code, but it's def fun