Sha256: c05fe531376c04a53a26aaee1bb1e27f0acea8f257a975185da507222f30432e

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

#!/usr/bin/env ruby
require 'pathname'

APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
  executable_path = ENV["PATH"].split(File::PATH_SEPARATOR).find do |path|
    normalized_path = File.expand_path(path)

    normalized_path != __dir__ && File.executable?(Pathname.new(normalized_path).join('yarn'))
  end

  if executable_path
    exec File.expand_path(Pathname.new(executable_path).join('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

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 test/dummy/bin/yarn
msip-2.2.0.alfa2 test/dummy/bin/yarn
msip-2.2a2 test/dummy/bin/yarn