Skip to content

Commit ba447f9

Browse files
authored
Add and update new config files (#995)
`bump-version.nu`: * Adds the new file location for config files * Adds the new config files
1 parent 5a74077 commit ba447f9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

make_release/bump-version.nu

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,21 @@ def main [
2929
| save --force $file.name
3030
}
3131

32-
"crates/nu-utils/src/sample_config/default_{config,env}.nu" | str expand | each {|file|
32+
"crates/nu-utils/src/default_files/doc_{config,env}.nu" | str expand | each {|file|
33+
log debug $"bumping ($file) from ($version) to ($new_version)"
34+
open --raw $file
35+
| str replace --all $'version = "($version)"' $'version = "($new_version)"'
36+
| save --force $file
37+
}
38+
39+
"crates/nu-utils/src/default_files/default_{config,env}.nu" | str expand | each {|file|
40+
log debug $"bumping ($file) from ($version) to ($new_version)"
41+
open --raw $file
42+
| str replace --all $'version = "($version)"' $'version = "($new_version)"'
43+
| save --force $file
44+
}
45+
46+
"crates/nu-utils/src/default_files/scaffold_{config,env}.nu" | str expand | each {|file|
3347
log debug $"bumping ($file) from ($version) to ($new_version)"
3448
open --raw $file
3549
| str replace --all $'version = "($version)"' $'version = "($new_version)"'

0 commit comments

Comments
 (0)