cloudflare/cloudflare-typescript
Publicmirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable
scripts/bootstrap
18lines · modeblame
9ba55743stainless-app[bot]2 years ago | 1 | #!/usr/bin/env bash |
| 2 | | |
| 3 | set -e | |
| 4 | | |
| 5 | cd "$(dirname "$0")/.." | |
| 6 | | |
82097794stainless-app[bot]1 years ago | 7 | if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then |
88a16222stainless-app[bot]2 years ago | 8 | brew bundle check >/dev/null 2>&1 || { |
| 9 | echo "==> Installing Homebrew dependencies…" | |
| 10 | brew bundle | |
| 11 | } | |
| 12 | fi | |
| 13 | | |
| 14 | echo "==> Installing Node dependencies…" | |
| 15 | | |
9ba55743stainless-app[bot]2 years ago | 16 | PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm") |
| 17 | | |
| 18 | $PACKAGE_MANAGER install |