30 lines
538 B
Bash
30 lines
538 B
Bash
#! /usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
distDirectory=${DIST_DIRECTORY:-"dist"}
|
|
|
|
rm -rf ${distDirectory}
|
|
|
|
bun run lint
|
|
bun run build:node
|
|
bun run build:browser
|
|
bun run build:types
|
|
bun run build:prepare-package-json
|
|
|
|
echo "Copying [.npmrc] to [${distDirectory}]"
|
|
cp .npmrc ./${distDirectory}
|
|
|
|
echo "Copying [.nvmrc] to [${distDirectory}]"
|
|
cp .nvmrc ./${distDirectory}
|
|
|
|
echo "Copying [README.md] to [${distDirectory}]"
|
|
cp README.md ./${distDirectory}
|
|
|
|
ls ${distDirectory}
|
|
|
|
echo -e "\nci-build complete!"
|
|
exit 0
|