#!/usr/bin/env bash set -o errexit cd "$(dirname "$0")" yarn install --frozen-lockfile npx tsc && npx tsc-alias # Copying node_modules directory into dist as rts server requires node_modules to run server build properly. This was previously being done in dockerfile which was copying the symlinks to image rather than the whole directory of shared modules (e.g. AST) cp -r node_modules ./dist