diff options
Diffstat (limited to 'testapp/bin/yarn')
-rwxr-xr-x | testapp/bin/yarn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testapp/bin/yarn b/testapp/bin/yarn new file mode 100755 index 0000000..460dd56 --- /dev/null +++ b/testapp/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 |