Port property assessor helpers to TypeScript
This commit is contained in:
13
skills/property-assessor/scripts/property-assessor
Executable file
13
skills/property-assessor/scripts/property-assessor
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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" "$@"
|
||||
Reference in New Issue
Block a user