Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run
yarn:install
before assets:precompile
if bin/yarn
present
Based on discussion in rails#40795, it looks like `yarn:install` is *always* run, even if the Rails project disabled javascript and there is no `bin/yarn`. Check for the existence of `bin/yarn` to decide if `yarn:install` should be run or not. The check for this is taken from `railties/lib/rails/app_updater.rb`, where it does the same: ```ruby options[:skip_javascript] = !File.exist?(Rails.root.join("bin", "yarn")) ```
- Loading branch information