aboutsummaryrefslogtreecommitdiff
path: root/bin/yarn
blob: c5cf83182059882b286f27e04c3219a52cbe21d7 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
  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