Skip to content

Commit

Permalink
Minor fix to change-version script
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Sep 27, 2024
1 parent 74a6247 commit f74ce92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/change-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function updateCargo(newVersion) {
const toml = await readFile("wasm/Cargo.toml", { encoding: "utf8" });

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

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

0 comments on commit f74ce92

Please sign in to comment.