Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add package_manager config option, experimental support for bun #481

Merged
merged 5 commits into from
Jul 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: rubocop
  • Loading branch information
ElMassimo committed Jul 17, 2024
commit 843ed97d8b545b80a6b38e3361d1d1455b4bd335
4 changes: 2 additions & 2 deletions vite_ruby/lib/tasks/vite.rake
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace :vite do
install_env_args = ENV['VITE_RUBY_SKIP_INSTALL_DEV_DEPENDENCIES'] == 'true' ? {} : { 'NODE_ENV' => 'development' }

install_cmd = case (pkg = ViteRuby.config.package_manager)
when "npm" then "npm ci"
else "#{pkg} install --frozen-lockfile"
when 'npm' then 'npm ci'
else "#{ pkg } install --frozen-lockfile"
end

system(install_env_args, install_cmd)
Expand Down