summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/yarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/yarn b/bin/yarn
index 8c1535a78f8..460dd565b4a 100755
--- a/bin/yarn
+++ b/bin/yarn
@@ -2,7 +2,7 @@
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
begin
- exec "yarnpkg #{ARGV.join(' ')}" unless Dir.exist?('node_modules')
+ 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"