Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pftg committed Mar 6, 2024
1 parent 289e810 commit ca22a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion vite_ruby/lib/vite_ruby/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def watched_files_digest
def build_with_vite(*args)
logger.info 'Building with Vite ⚡️'

run(['build', *args])
p(run(['build', *args]))

ensure
logger.debug '[Done]'
end

# Internal: Outputs the build results.
Expand Down
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby/io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def capture(*cmd, with_output: $stdout.method(:puts), stdin_data: '', **opts)
stdin.close
out = Thread.new { read_lines(stdout, &with_output) }
err = Thread.new { stderr.read }
[out.value, err.value.to_s, wait_threads.value]
p([out.value, err.value.to_s, wait_threads.value])
}
end

Expand Down

0 comments on commit ca22a75

Please sign in to comment.