Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit f2ef731

Browse files
committed
Use logger
1 parent 6c31160 commit f2ef731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite_ruby/lib/vite_ruby/runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ def run(argv, exec: false)
1111
config.within_root {
1212
cmd = command_for(argv)
1313

14-
puts "Running: #{ cmd.join(' ') }"
1514
return Kernel.exec(*cmd) if exec
1615

1716
log_or_noop = ->(line) { logger.info('vite') { line } } unless config.hide_build_console_output
17+
log_or_noop.call(cmd)
1818
ViteRuby::IO.capture(*cmd, chdir: config.root, with_output: log_or_noop)
1919
}
2020
rescue Errno::ENOENT => error

0 commit comments

Comments
 (0)