PromucFlow_constructor/app/client/packages/rts/build.sh
Shrikant Sharat Kandula 14f4bae198
chore: Use separate specific esbuild for RTS (#27764)
Use separate specifici `esbuild` for building RTS, instead of reusing
the one coming from storybook.

As recommended in [this
comment](https://github.com/appsmithorg/appsmith/pull/27310#pullrequestreview-1652734575).
2023-10-03 12:37:23 +05:30

19 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
cd "$(dirname "$0")"
yarn install --immutable
yarn run tsc --noEmit
rm -rf dist
yarn run esbuild src/server.ts \
--bundle \
--minify \
--sourcemap \
--platform=node \
--target="$(node --version | sed s/v/node/)" \
--outdir=dist/bundle \
--external:dtrace-provider