Skip to content

Commit

Permalink
Fixing minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Sep 27, 2024
1 parent cc0c599 commit 74a6247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/change-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ async function updateVersions(newVersion) {

// Updates the version in `Cargo.toml`
async function updateCargo(newVersion) {
const json = await readFile("wasm/Cargo.toml", { encoding: "utf8" });
const toml = await readFile("wasm/Cargo.toml", { encoding: "utf8" });

const replaced = json
const replaced = toml
.replace(/(name *= *"aleo-wasm"\s+version *= *)"[^"]+"/, `$1"${newVersion}"`);

await writeFile("wasm/Cargo.toml", replaced);
Expand Down

0 comments on commit 74a6247

Please sign in to comment.