tracks/bin/yarn
Matt Rogers 2cbe020d8a
Update the app for Rails 5.2
After the framework bump, run `rails app:update` to pull in the new
framework changes and defaults.
2018-11-17 12:37:03 -06:00

11 lines
303 B
Ruby
Executable file

#!/usr/bin/env ruby
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
begin
exec "yarnpkg", *ARGV
rescue Errno::ENOENT
$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