summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs
index c94aed244..e20435a00 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -428,7 +428,11 @@ async fn bundle_command(
let global_state = GlobalState::new(flags)?;
- info!("Bundling {}", module_specifier.to_string());
+ info!(
+ "{} {}",
+ colors::green("Bundle".to_string()),
+ module_specifier.to_string()
+ );
let output = tsc::bundle(
&global_state,
@@ -442,11 +446,15 @@ async fn bundle_command(
debug!(">>>>> bundle END");
if let Some(out_file_) = out_file.as_ref() {
- info!("Emitting bundle to {:?}", out_file_);
let output_bytes = output.as_bytes();
let output_len = output_bytes.len();
deno_fs::write_file(out_file_, output_bytes, 0o666)?;
- info!("{} emitted.", human_size(output_len as f64));
+ info!(
+ "{} {:?} ({})",
+ colors::green("Emit".to_string()),
+ out_file_,
+ colors::gray(human_size(output_len as f64))
+ );
} else {
println!("{}", output);
}