| |
| |
| set -euo pipefail |
| echo "[postBuild] starting..." |
| ls -la |
| node -v || true |
| npm -v || true |
| git --version || true |
|
|
| REPO_DIR="crypto-indicators-mcp" |
| REPO_URL="https://github.com/kukapay/crypto-indicators-mcp.git" |
|
|
| if [ ! -d "$REPO_DIR" ]; then |
| echo "[postBuild] cloning $REPO_URL" |
| git clone --depth=1 "$REPO_URL" "$REPO_DIR" |
| else |
| echo "[postBuild] $REPO_DIR exists; syncing" |
| (cd "$REPO_DIR" && git fetch --depth=1 origin && git reset --hard origin/HEAD) |
| fi |
|
|
| echo "[postBuild] npm install in $REPO_DIR" |
| cd "$REPO_DIR" |
| if [ -f package-lock.json ]; then npm ci; else npm install --omit=dev; fi |
| echo "[postBuild] done." |