1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/bin/yarn

12 lines
303 B
Plaintext
Raw Normal View History

2020-03-13 17:10:38 +01:00
#!/usr/bin/env ruby
2020-03-31 11:28:00 +02:00
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
2020-03-13 17:10:38 +01:00
begin
2020-03-31 11:28:00 +02:00
exec "yarnpkg", *ARGV
2020-03-13 17:10:38 +01:00
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