From 406bb4af68dcdb9e4ed095814cdb0041f512be1d Mon Sep 17 00:00:00 2001 From: cmrd Senya <35317-cmrd-senya@users.noreply.gitlab.gnome.org> Date: Tue, 12 Jul 2022 22:02:28 +0300 Subject: [PATCH] Add bin/yarn --- bin/yarn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/yarn diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..460dd565b --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + 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 +end