diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-04-23 15:28:23 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-04-23 15:28:23 +0900 |
commit | 28f455188af01bbfd290c236a8735ce0d5bfb6ec (patch) | |
tree | ed0c0acb61d08b74a9fc7260450040b095ea4537 /railties/lib | |
parent | a6a93f9ed5af5c84cf35dc03759c0b7d9d880cd2 (diff) | |
download | rails-28f455188af01bbfd290c236a8735ce0d5bfb6ec.tar.gz rails-28f455188af01bbfd290c236a8735ce0d5bfb6ec.tar.bz2 rails-28f455188af01bbfd290c236a8735ce0d5bfb6ec.zip |
Ensure bin/yarn matches the one generated by webpacker
Import from https://github.com/rails/webpacker/pull/277.
Fixes https://github.com/rails/webpacker/issues/278
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/yarn b/railties/lib/rails/generators/rails/app/templates/bin/yarn index 4ae896a8d3..44f75c22a4 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/yarn +++ b/railties/lib/rails/generators/rails/app/templates/bin/yarn @@ -3,7 +3,8 @@ Dir.chdir(VENDOR_PATH) do begin exec "yarnpkg #{ARGV.join(" ")}" rescue Errno::ENOENT - puts "Yarn executable was not detected in the system." - puts "Download Yarn at https://yarnpkg.com/en/docs/install" + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 end end |