aboutsummaryrefslogtreecommitdiff
path: root/testapp/bin/yarn
blob: 460dd565b4a3dd6c4cb028bc19d78a7c066d3ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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