diff --git a/vite_ruby/lib/vite_ruby/runner.rb b/vite_ruby/lib/vite_ruby/runner.rb index c0dacff..fa06757 100644 --- a/vite_ruby/lib/vite_ruby/runner.rb +++ b/vite_ruby/lib/vite_ruby/runner.rb @@ -11,10 +11,10 @@ def run(argv, exec: false) config.within_root { cmd = command_for(argv) - puts "Running: #{ cmd.join(' ') }" return Kernel.exec(*cmd) if exec log_or_noop = ->(line) { logger.info('vite') { line } } unless config.hide_build_console_output + log_or_noop.call(cmd) ViteRuby::IO.capture(*cmd, chdir: config.root, with_output: log_or_noop) } rescue Errno::ENOENT => error