NRuby
11 строк · 303.0 Байт
1#!/usr/bin/env ruby
2APP_ROOT = File.expand_path('..', __dir__)
3Dir.chdir(APP_ROOT) do
4begin
5exec "yarnpkg", *ARGV
6rescue Errno::ENOENT
7$stderr.puts "Yarn executable was not detected in the system."
8$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9exit 1
10end
11end
12