#!/bin/sh
parent_path=$( cd "$(dirname "$0")" ; pwd -P )

js_shim="$parent_path/hyperstack.js"

if [ -f "$js_shim" ]; then
  node $js_shim $*
else 
  node -r ts-node/register $parent_path/hyperstack.ts $*
fi
