Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions boxes/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -43,7 +43,7 @@ program
},
level: debug ? "debug" : "info",
},
prettyStream
prettyStream,
);

global.debug = (msg) => logger.debug(msg);
Expand Down Expand Up @@ -100,11 +100,11 @@ program
.description("An Aztec project with a built-in development network")
.option(
"-t, --project-type <projectType>",
"the type of the project to clone ('app' or 'contract')"
"the type of the project to clone ('app' or 'contract')",
)
.option(
"-n, --project-name <projectName>",
"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
Expand Down