lib/vite_ruby/cli/install.rb in vite_ruby-1.0.4 vs lib/vite_ruby/cli/install.rb in vite_ruby-1.0.5
- old
+ new
@@ -73,10 +73,10 @@
def install_js_dependencies
package_json = root.join('package.json')
write(package_json, '{}') unless package_json.exist?
Dir.chdir(root) do
deps = "vite@#{ ViteRuby::DEFAULT_VITE_VERSION } vite-plugin-ruby@#{ ViteRuby::DEFAULT_PLUGIN_VERSION }"
- stdout, stderr, status = Open3.capture3({ 'CI' => 'true' }, "npx @antfu/ni -D #{ deps }")
+ stdout, stderr, status = Open3.capture3({ 'CI' => 'true' }, "npx --package @antfu/ni -- ni -D #{ deps }")
stdout, stderr, = Open3.capture3({}, "yarn add -D #{ deps }") unless status.success?
say(stdout, "\n", stderr)
end
end