From 007209d39c3268881394b01dd1ff9d7a5aaef97f Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 24 May 2024 19:48:57 +1200 Subject: [PATCH] fix: remove old `bin/yarn` file (#483) --- CHANGELOG.md | 2 ++ lib/install/bin/yarn | 18 ------------------ 2 files changed, 2 insertions(+), 18 deletions(-) delete mode 100755 lib/install/bin/yarn diff --git a/CHANGELOG.md b/CHANGELOG.md index 092a8e708..270f8f024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Changes since the last non-beta release. - Improve documentation for using Yarn PnP [PR 484](https://github.com/shakacode/shakapacker/pull/484) by [G-Rath](https://github.com/g-rath). +- Remove old `yarn` bin script [PR 483](https://github.com/shakacode/shakapacker/pull/483) by [G-Rath](https://github.com/g-rath). + ## [v8.0.0] - May 17, 2024 See the [v8 Upgrade Guide](https://github.com/shakacode/shakapacker/blob/main/docs/v8_upgrade.md). diff --git a/lib/install/bin/yarn b/lib/install/bin/yarn deleted file mode 100755 index fe7338622..000000000 --- a/lib/install/bin/yarn +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -APP_ROOT = File.expand_path("..", __dir__) -Dir.chdir(APP_ROOT) do - yarn = ENV["PATH"].split(File::PATH_SEPARATOR). - select { |dir| File.expand_path(dir) != __dir__ }. - product(["yarn", "yarnpkg", "yarn.cmd", "yarn.ps1"]). - map { |dir, file| File.expand_path(file, dir) }. - find { |file| File.executable?(file) } - - if yarn - exec yarn, *ARGV - else - $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