Skip to content

Commit

Permalink
Fixing bug with change-version script
Browse files Browse the repository at this point in the history
Signed-off-by: Pauan <[email protected]>
  • Loading branch information
Pauan authored Sep 25, 2024
1 parent b27990f commit c81f4bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/change-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ async function updateDependency(path, newVersion) {

const replaced = json
.replace(/"@provablehq\/sdk": *"[^"]+"/g, `"@provablehq/sdk": "^${newVersion}"`)
.replace(/"@provablehq\/wasm": *"[^"]+"/g, `"@provablehq/wasm": "^${newVersion}"`)
.replace(/"create-leo-app": *"[^"]+"/g, `"create-leo-app": "^${newVersion}"`);
.replace(/"@provablehq\/wasm": *"[^"]+"/g, `"@provablehq/wasm": "^${newVersion}"`);

await writeFile(path, replaced);
}
Expand Down

0 comments on commit c81f4bf

Please sign in to comment.