class ViteRuby::CLI::Install

def install_js_dependencies

Internal: Installs vite and vite-plugin-ruby at the project level.
def install_js_dependencies
  package_json = root.join('package.json')
  write(package_json, '{}') unless package_json.exist?
  deps = js_dependencies.join(' ')
  run_with_capture("#{ npm_install } -D #{ deps }", stdin_data: "\n")
end