2019-07-04 11:16:55 +00:00
|
|
|
#!/usr/bin/env ruby
|
2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2019-07-04 11:16:55 +00:00
|
|
|
APP_ROOT = File.expand_path('..', __dir__)
|
|
|
|
Dir.chdir(APP_ROOT) do
|
2021-06-23 11:35:27 +00:00
|
|
|
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
|
2019-07-04 11:16:55 +00:00
|
|
|
end
|