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