17528: Remove bin/yarn from Rails projects.
authorTom Clegg <tom@curii.com>
Thu, 15 Apr 2021 19:45:40 +0000 (15:45 -0400)
committerTom Clegg <tom@curii.com>
Thu, 15 Apr 2021 19:45:40 +0000 (15:45 -0400)
"rake assets:precompile" uses the existence of the bin/yarn stub to
decide whether yarn is needed.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

apps/workbench/bin/yarn [deleted file]
services/api/bin/yarn [deleted file]

diff --git a/apps/workbench/bin/yarn b/apps/workbench/bin/yarn
deleted file mode 100755 (executable)
index 5fc7611..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env ruby
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-APP_ROOT = File.expand_path('..', __dir__)
-Dir.chdir(APP_ROOT) do
-  begin
-    exec "yarnpkg #{ARGV.join(" ")}"
-  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
diff --git a/services/api/bin/yarn b/services/api/bin/yarn
deleted file mode 100755 (executable)
index cc54a3b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env ruby
-
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-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