diff --git a/scripts/change-version.js b/scripts/change-version.js index 3bf4c9646..604c5092a 100644 --- a/scripts/change-version.js +++ b/scripts/change-version.js @@ -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); }