14 lines
400 B
Bash
Executable File
14 lines
400 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
SKILL_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
TSX_BIN="${SKILL_DIR}/node_modules/.bin/tsx"
|
|
|
|
if [[ ! -e "${TSX_BIN}" ]]; then
|
|
echo "Missing local Node dependencies for property-assessor. Run 'cd ${SKILL_DIR} && npm install' first." >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec node "${TSX_BIN}" "${SKILL_DIR}/src/cli.ts" "$@"
|