abc71184c8
use git command instead of some random realpath that is not installed everywhere
15 lines
274 B
Bash
Executable File
15 lines
274 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
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[@]}"
|