mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
87e9ae053d
Based on discussion in https://github.com/rails/rails/issues/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")) ``` |
||
---|---|---|
.. | ||
engine.rake | ||
framework.rake | ||
log.rake | ||
middleware.rake | ||
misc.rake | ||
restart.rake | ||
statistics.rake | ||
tmp.rake | ||
yarn.rake | ||
zeitwerk.rake |