diff --git a/crates/bump-versions.nu b/crates/bump-versions.nu index 02aec7fdf..03d3cfa9b 100644 --- a/crates/bump-versions.nu +++ b/crates/bump-versions.nu @@ -1,5 +1,9 @@ +cd .. + let version = "x.x.x" +open Cargo.toml | update workspace.package.version $version | save -f Cargo.toml + let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last} def update-manifest [] { @@ -14,6 +18,7 @@ def update-manifest [] { def replace-manifest [] { let path = $"crates/($in)/Cargo.toml" open $path | update-manifest | to toml | save -f $path + $path } -$crates | each {|p| $p | replace-manifest} +$crates | each {|p| $p | replace-manifest} | prepend Cargo.toml