# FIXME: Remove this file when https://github.com/rails/rails/issues/40795 has a fix.

Rake::Task[ "yarn:install" ].clear
namespace :yarn do
  desc "Disabling internal yarn install from Rails"
  task install: :environment do
    puts "Disabling internal yarn install from Rails"
  end
end

Rake::Task[ "webpacker:yarn_install" ].clear
namespace :webpacker do
  desc "Disabling internal yarn install from Rails"
  task yarn_install: :environment do
    puts "Disabling internal yarn install from Rails"
  end
end

Fix yarn issue during deploy
Fix yarn issue during deploy

When running `rake assets:precompile`, `railties-6.1.0/lib/rails/tasks/yarn.rake` gets called
and since we don't have yarn installed it will cause an exception.

There is an issue on this: https://github.com/rails/rails/issues/40795.

When fixed, this temporary fix should be removed.
