feat: add Bun packages step (#599)

This commit is contained in:
LeSnake
2023-11-05 03:34:21 +01:00
committed by GitHub
parent 61ef926849
commit 465df2e9be
3 changed files with 10 additions and 0 deletions

View File

@@ -555,6 +555,14 @@ pub fn run_bun(ctx: &ExecutionContext) -> Result<()> {
ctx.run_type().execute(bun).arg("upgrade").status_checked()
}
pub fn run_bun_packages(ctx: &ExecutionContext) -> Result<()> {
let bun = require("bun")?;
print_separator("Bun Packages");
ctx.run_type().execute(bun).args(["-g", "update"]).status_checked()
}
/// Update dotfiles with `rcm(7)`.
///
/// See: <https://github.com/thoughtbot/rcm>