From e64e3f14fd255d91ac0aa7a272741df08da82701 Mon Sep 17 00:00:00 2001 From: Dino Maric Date: Thu, 27 Jul 2017 22:15:38 +0200 Subject: Introduce the Dummy. (#70) --- test/dummy/bin/yarn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test/dummy/bin/yarn (limited to 'test/dummy/bin/yarn') diff --git a/test/dummy/bin/yarn b/test/dummy/bin/yarn new file mode 100755 index 0000000000..c2bacef836 --- /dev/null +++ b/test/dummy/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +VENDOR_PATH = File.expand_path('..', __dir__) +Dir.chdir(VENDOR_PATH) do + begin + exec "yarnpkg #{ARGV.join(" ")}" + 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 -- cgit v1.2.3