From 38e1f12d79ec3313e42643e52f2d10cb5fbd5d5d Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 8 Feb 2018 11:01:46 -0600 Subject: Add dummy app --- 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..460dd565b4 --- /dev/null +++ b/test/dummy/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 -- cgit v1.2.3