aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/test/dummy/bin/yarn
diff options
context:
space:
mode:
Diffstat (limited to 'actiontext/test/dummy/bin/yarn')
-rwxr-xr-xactiontext/test/dummy/bin/yarn11
1 files changed, 11 insertions, 0 deletions
diff --git a/actiontext/test/dummy/bin/yarn b/actiontext/test/dummy/bin/yarn
new file mode 100755
index 0000000000..460dd565b4
--- /dev/null
+++ b/actiontext/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