lib/vite_ruby/builder.rb in vite_ruby-1.2.15 vs lib/vite_ruby/builder.rb in vite_ruby-1.2.16
- old
+ new
@@ -31,11 +31,11 @@
private
extend Forwardable
- def_delegators :@vite_ruby, :config, :logger
+ def_delegators :@vite_ruby, :config, :logger, :run
# Internal: Reads metadata recorded on the last build, if it exists.
def last_build_attrs
last_build_path.exist? ? JSON.parse(last_build_path.read.to_s) : {}
rescue JSON::JSONError, Errno::ENOENT, Errno::ENOTDIR
@@ -67,10 +67,10 @@
#
# Returns true if the build is successful, or false if it failed.
def build_with_vite(*args)
logger.info 'Building with Vite ⚡️'
- stdout, stderr, status = ViteRuby.run(['build', *args])
+ stdout, stderr, status = run(['build', *args])
log_build_result(stdout, stderr.to_s, status)
status.success?
end