Merge branch '15964-fix-docs' refs #15964
[arvados.git] / services / api / bin / yarn
1 #!/usr/bin/env ruby
2
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: AGPL-3.0
6
7 APP_ROOT = File.expand_path('..', __dir__)
8 Dir.chdir(APP_ROOT) do
9   begin
10     exec "yarnpkg", *ARGV
11   rescue Errno::ENOENT
12     $stderr.puts "Yarn executable was not detected in the system."
13     $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
14     exit 1
15   end
16 end