nu_scripts/make_release/nu_release.nu
Jakub Žádník bccdab661a
Reorder release dependencies (#754)
These are the changes after running nu_deps
2024-03-05 21:27:04 +01:00

70 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

use std log
def publish [
crate: path # the path to the crate to publish.
--no-verify # dont verify the contents by building them. Can be useful for crates with a `build.rs`.
] {
cd $crate
if $no_verify {
cargo publish --no-verify
} else {
cargo publish
}
}
let subcrates_wave_1 = [
nu-glob,
nu-json,
nu-path,
nu-pretty-hex,
nu-system,
nu-utils,
nu-term-grid,
nu-test-support,
nu-protocol,
nu-engine,
nu-plugin,
nu-color-config,
nu-parser,
nu-std,
nu-table,
nu-cmd-base,
]
# This crate has a `build.rs` file and thus needs `--no-verify`
let subcrates_wave_2 = [
nu-cmd-lang,
]
let subcrates_wave_3 = [
nu-command,
nu-explore,
nu-cli,
nu-cmd-dataframe,
nu-cmd-extra,
nu-lsp,
nu_plugin_query,
nu_plugin_inc,
nu_plugin_gstat,
nu_plugin_formats,
]
log warning "publishing the first wave of crates"
for subcrate in $subcrates_wave_1 {
publish ("crates" | path join $subcrate)
}
log warning "publishing the second wave of crates"
for subcrate in $subcrates_wave_2 {
publish ("crates" | path join $subcrate) --no-verify
}
log warning "publishing the third wave of crates"
for subcrate in $subcrates_wave_3 {
publish ("crates" | path join $subcrate)
}
cargo publish