Files
headlessui/scripts/build.sh
T
2020-09-17 23:25:16 +02:00

19 lines
359 B
Bash
Executable File

#!/bin/bash
set -e
TARGET_DIR="$(pwd)"
# INFO: This script is always run from the individual package.
node="yarn node"
tsdxArgs=()
# Add script name
tsdxArgs+=("build" "--name" "headlessui" "--format" "cjs,esm,umd" "--tsconfig" "./tsconfig.tsdx.json")
# Passthrough arguments and flags
tsdxArgs+=($@)
# Execute
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"