]> git.openstreetmap.org Git - rails.git/blob - bin/yarn
Merge pull request #1558 from plarus/master
[rails.git] / bin / yarn
1 #!/usr/bin/env ruby
2 APP_ROOT = File.expand_path("..", __dir__)
3 Dir.chdir(APP_ROOT) do
4   exec "yarnpkg", *ARGV
5 rescue Errno::ENOENT
6   warn "Yarn executable was not detected in the system."
7   warn "Download Yarn at https://yarnpkg.com/en/docs/install"
8   exit 1
9 end