Sha256: 64cf5c0d3dfe36a3bffa92a3a5d1afdb51f5eedeca81b812c020f527adb16ca3
Contents?: true
Size: 517 Bytes
Versions: 14
Compression:
Stored size: 517 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 warn "Yarn executable was not detected in the system." warn "Download Yarn at https://yarnpkg.com/en/docs/install" exit 1 end end
Version data entries
14 entries across 14 versions & 1 rubygems