about summary refs log tree commit diff stats
path: root/bin/yarn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/yarn')
-rwxr-xr-xbin/yarn11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 0000000..c2bacef --- /dev/null +++ b/bin/yarn
@@ -0,0 +1,11 @@
1#!/usr/bin/env ruby
2VENDOR_PATH = File.expand_path('..', __dir__)
3Dir.chdir(VENDOR_PATH) do
4 begin
5 exec "yarnpkg #{ARGV.join(" ")}"
6 rescue 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"
9 exit 1
10 end
11end