File: yarn

package info (click to toggle)
ruby-bootstrap-form 4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 848 kB
  • sloc: ruby: 1,482; makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
  begin
    exec "yarnpkg #{ARGV.join(' ')}"
  rescue Errno::ENOENT
    warn "Yarn executable was not detected in the system."
    warn "Download Yarn at https://yarnpkg.com/en/docs/install"
    exit 1
  end
end