agenda-libre-ruby/bin/yarn

10 lines
263 B
Plaintext
Raw Permalink Normal View History

2017-10-21 22:12:29 +02:00
#!/usr/bin/env ruby
2019-12-21 21:00:16 +01:00
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
exec 'yarnpkg', *ARGV
2018-07-08 16:19:39 +02:00
rescue Errno::ENOENT
warn 'Yarn executable was not detected in the system.'
warn 'Download Yarn at https://yarnpkg.com/en/docs/install'
exit 1
2017-10-21 22:12:29 +02:00
end