prepare for depoyment

This commit is contained in:
2025-11-22 21:12:02 -05:00
parent d2d654dfda
commit d0db8e5076
7 changed files with 51 additions and 32 deletions

View File

@@ -4,6 +4,8 @@ set -o errexit
set -o nounset
set -o pipefail
xtrace="false"
debug="false"
distDirectory=${DIST_DIRECTORY:-"dist"}
if [[ ! -z "${distDirectory}" ]]; then
@@ -12,6 +14,19 @@ if [[ ! -z "${distDirectory}" ]]; then
rm -rf ${distDirectory}
fi
while [[ $# -gt 0 ]]; do
case $1 in
--xtrace|-x)
xtrace="true"
shift
;;
--debug|-d)
debug="true"
shift
;;
esac
done
bun run lint
bun run build:node
bun run build:browser
@@ -24,8 +39,8 @@ cp .npmrc ./${distDirectory}
echo "Copying [.nvmrc] to [${distDirectory}]"
cp .nvmrc ./${distDirectory}
echo "Copying [README.md] to [${distDirectory}]"
cp README ./${distDirectory}
# echo "Copying [README.md] to [${distDirectory}]"
# cp README ./${distDirectory}
ls ${distDirectory}