Bun packages fixes (#617)
* fix running with --only * fix error when no packages installed
This commit is contained in:
@@ -560,6 +560,11 @@ pub fn run_bun_packages(ctx: &ExecutionContext) -> Result<()> {
|
||||
|
||||
print_separator("Bun Packages");
|
||||
|
||||
if !HOME_DIR.join(".bun/install/global/package.json").exists() {
|
||||
println!("No global packages installed");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
ctx.run_type().execute(bun).args(["-g", "update"]).status_checked()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user