mirror of
https://github.com/hypit-ai/hypit.git
synced 2026-11-15 19:51:58 +00:00
12 lines
404 B
Bash
Executable File
12 lines
404 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
launcher_path=$(node -e 'process.stdout.write(require("node:fs").realpathSync(process.argv[1]))' "$0")
|
|
launcher_dir=$(CDPATH= cd -- "$(dirname -- "$launcher_path")" && pwd)
|
|
launcher="$launcher_dir/bin/hypit.mjs"
|
|
if [ ! -f "$launcher" ]; then
|
|
echo "Hypit dependencies are not installed in $launcher_dir; run: pnpm install --frozen-lockfile" >&2
|
|
exit 1
|
|
fi
|
|
exec node "$launcher" "$@"
|