forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·25 lines (19 loc) · 813 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -euo pipefail
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}"
if ! npm ci --help; then
echo "upgrading npm, because "npm ci" is not supported"
npm i -g npm@~6.8.0
fi
echo "============================================================================================="
echo "installing repo-global dependencies..."
npm ci --global-style
# Now that we have lerna available...
export PATH=$(npm bin):$PATH
echo "============================================================================================="
echo "cleanup and start bootstrapping..."
lerna clean --yes
lerna bootstrap --reject-cycles --ci
echo "============================================================================================="
echo "installing local links..."
node scripts/install-local-deps.js