about summary refs log tree commit diff
path: root/bin/yarn
blob: c2bacef836f2140d11d42535643d4d204b9d519c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
VENDOR_PATH = File.expand_path('..', __dir__)
Dir.chdir(VENDOR_PATH) do
  begin
    exec "yarnpkg #{ARGV.join(" ")}"
  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