lib/vite_ruby/cli/install.rb in vite_ruby-2.0.0.beta.4 vs lib/vite_ruby/cli/install.rb in vite_ruby-2.0.0.beta.5

- old
+ new

@@ -111,9 +111,14 @@ def say(*args) $stdout.puts(*args) end + def run_with_capture(*args, **options) + _, stderr, status = ViteRuby::IO.capture(*args, **options) + say(err) unless status.success? || stderr.to_s.empty? + end + # Internal: Avoid printing warning about missing vite.json, we will create one. def silent_warnings old_stderr = $stderr $stderr = StringIO.new yield