Sha256: eeba922e0862237128e70381a9b0578617f55ba450a6fb05a090cd301e3e10b3

Contents?: true

Size: 533 Bytes

Versions: 33

Compression:

Stored size: 533 Bytes

Contents

#!/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", "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

Version data entries

33 entries across 33 versions & 9 rubygems

Version Path
raygun4ruby-4.0.2 spec/rails_applications/6.1.4/bin/yarn
tessa-6.1.3 spec/dummy/bin/yarn
raygun4ruby-4.0.1 spec/rails_applications/6.1.4/bin/yarn
tessa-6.1.2 spec/dummy/bin/yarn
raygun4ruby-4.0.0.pre spec/rails_applications/6.1.4/bin/yarn
tessa-6.1.1 spec/dummy/bin/yarn
tessa-6.1.0 spec/dummy/bin/yarn
iqvoc_similar_terms-2.11.4 bin/yarn
iqvoc_inflectionals-2.11.4 bin/yarn
iqvoc_compound_forms-2.11.4 bin/yarn
iqvoc_similar_terms-2.11.3 bin/yarn
iqvoc_inflectionals-2.11.3 bin/yarn
iqvoc_compound_forms-2.11.3 bin/yarn
tessa-6.0.3 spec/dummy/bin/yarn
ruby-clock-2.0.1 example-rails-6-app/bin/yarn
ruby-clock-2.0.0 example-rails-6-app/bin/yarn
tessa-6.0.2 spec/dummy/bin/yarn
tessa-6.0.1 spec/dummy/bin/yarn
tessa-6.0.0 spec/dummy/bin/yarn
ruby-clock-2.0.0.beta10 example-rails-6-app/bin/yarn