Sha256: e8cc0a87b307852c607b7886751df2f3f1c4acfb80637cb97bd7763c45d8b160
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true class ViteRuby::CLI::UpgradePackages < ViteRuby::CLI::Install desc 'Upgrades the npm packages to the recommended versions.' def call(**) say 'Upgrading npm packages' Dir.chdir(root) do deps = js_dependencies.join(' ') run_with_capture("npx --package @antfu/ni -- ni -D #{ deps }") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vite_ruby-2.0.0.beta.6 | lib/vite_ruby/cli/upgrade_packages.rb |
vite_ruby-2.0.0.beta.5 | lib/vite_ruby/cli/upgrade_packages.rb |