We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c31160 commit f2ef731Copy full SHA for f2ef731
vite_ruby/lib/vite_ruby/runner.rb
@@ -11,10 +11,10 @@ def run(argv, exec: false)
11
config.within_root {
12
cmd = command_for(argv)
13
14
- puts "Running: #{ cmd.join(' ') }"
15
return Kernel.exec(*cmd) if exec
16
17
log_or_noop = ->(line) { logger.info('vite') { line } } unless config.hide_build_console_output
+ log_or_noop.call(cmd)
18
ViteRuby::IO.capture(*cmd, chdir: config.root, with_output: log_or_noop)
19
}
20
rescue Errno::ENOENT => error
0 commit comments