cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f94ee6573d46d54dff06c87266ef3252901e69cd

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/bootstrap

18lines · modecode

1#!/usr/bin/env bash
2
3set -e
4
5cd "$(dirname "$0")/.."
6
7if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
8 brew bundle check >/dev/null 2>&1 || {
9 echo "==> Installing Homebrew dependencies…"
10 brew bundle
11 }
12fi
13
14echo "==> Installing Node dependencies…"
15
16PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
17
18$PACKAGE_MANAGER install
19