#!/bin/sh
# Get the package root directory using npm
pkg_root=$(npm root -g)/@meldscience/oneshot

# Get the paths relative to the package root
ts_script="$pkg_root/bin/meld.ts"
node_modules="$pkg_root/node_modules/.bin"

# Execute the script using the local ts-node
exec "$node_modules/ts-node" "$ts_script" "$@" 