PromucFlow_constructor/app/rts/build.sh
Aman Agarwal 9b8e684d17
fix: failing rts build due to jest config (#17177)
* fix: failing rts build due to jest config

* fix: changed coverage directory
2022-09-29 16:12:07 +05:30

13 lines
555 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
cd "$(dirname "$0")"
rm -rf dist/
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)
# Also, we copy node_modules with -L flag in order to follow the symlinks for @shared folder and copy the contents instead of just the symlink
cp -RL node_modules ./dist