aboutsummaryrefslogtreecommitdiff
path: root/bin/yarn
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-22 19:32:22 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-22 19:32:35 +0200
commit9cbfd63e9785462bb89329f2d0093171e0167a8a (patch)
treea2b6b291b22c80b46c8215f9dcabf9404f5fea8c /bin/yarn
parentUpdate to Rails 5.1 (diff)
downloadpackages-5-9cbfd63e9785462bb89329f2d0093171e0167a8a.tar.gz
packages-5-9cbfd63e9785462bb89329f2d0093171e0167a8a.tar.bz2
packages-5-9cbfd63e9785462bb89329f2d0093171e0167a8a.zip
Update to Rails 5.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'bin/yarn')
-rwxr-xr-xbin/yarn6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/yarn b/bin/yarn
index c2bacef..460dd56 100755
--- a/bin/yarn
+++ b/bin/yarn
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
-VENDOR_PATH = File.expand_path('..', __dir__)
-Dir.chdir(VENDOR_PATH) do
+APP_ROOT = File.expand_path('..', __dir__)
+Dir.chdir(APP_ROOT) do
begin
- exec "yarnpkg #{ARGV.join(" ")}"
+ 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"