wasp/waspc/tools/install_deploy_package_to_data_dir.sh
2023-02-07 10:29:25 -05:00

17 lines
422 B
Bash
Executable File

#!/bin/sh -e
# Helper to compile the waspc/packages/deploy package locally and in CI.
# It will then move it into the Cabal data dir (and thus, the installer archive in CI releases).
# Gets the directory of where this script lives.
dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$dir/../packages/deploy"
npm install
npm run build
rm -rf ./node_modules
cd "$dir/.."
rm -rf ./data/packages
cp -R ./packages ./data