class ViteRuby::CLI::Install
def install_js_dependencies
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