Files
artcraft-services/frontend/build_modules.sh

51 lines
960 B
Bash
Executable File

#!/bin/bash
set -euxo pipefail
#
# If you get errors like this:
#
# x Build failed in 342ms
# error during build:
# [commonjs--resolver] Failed to resolve entry for package "@storyteller/api".
# The package may have incorrect main/module/exports specified in its package.json.
# ...
#
# Run this script!
#
echo 'TEMPORARY HACK: Build shared frontend dependencies since nx is not finding them...'
# A 'clean' will remove nx
npm install
# TODO: Temp commented out
nx build "@storyteller/api"
nx build "@storyteller/ui-gallery-modal"
nx build "@storyteller/ui-pricing-modal"
nx build "@storyteller/ui-loading"
nx build "@storyteller/ui-promptbox"
nx build "@storyteller/ui-model-selector"
nx build "@storyteller/ui-badge"
nx build "@storyteller/ui-button-dropdown"
nx build "@storyteller/ui-create-3d-modal"
nx build "@storyteller/ui-button-icon"
nx build "@storyteller/ui-upload-modal"
# CANNOT FIND
nx build "@sparkjsdev/spark"