lib/tasks/vite.rake in vite_ruby-3.2.2 vs lib/tasks/vite.rake in vite_ruby-3.2.3

- old
+ new

@@ -84,7 +84,10 @@ if ViteRuby.commands.legacy_npm_version? ENV['NPM_CONFIG_PRODUCTION'] = 'false' else ENV['NPM_CONFIG_INCLUDE'] = 'dev' end - ENV['YARN_PRODUCTION'] = 'false' + + if ViteRuby.commands.legacy_yarn_version? + ENV['YARN_PRODUCTION'] = 'false' + end end