Files
headlessui/scripts/build.sh
T
Robin Malfait 672afbe9f8 setup monorepo
2020-09-16 18:19:33 +02:00

19 lines
334 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" "--tsconfig" "./tsconfig.tsdx.json")
# Passthrough arguments and flags
tsdxArgs+=($@)
# Execute
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"