#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*|*MINGW*|*MSYS*)
        if command -v cygpath > /dev/null 2>&1; then
            basedir=`cygpath -w "$basedir"`
        fi
    ;;
esac

if [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.18_rollup@4.40.2_typescript@5.8.3_yaml@2.5.1/node_modules/astro/node_modules:/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.18_rollup@4.40.2_typescript@5.8.3_yaml@2.5.1/node_modules:/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/node_modules"
else
  export NODE_PATH="/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.18_rollup@4.40.2_typescript@5.8.3_yaml@2.5.1/node_modules/astro/node_modules:/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.18_rollup@4.40.2_typescript@5.8.3_yaml@2.5.1/node_modules:/home/runner/work/starlight-view-modes/starlight-view-modes/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../astro/astro.js" "$@"
else
  exec node  "$basedir/../astro/astro.js" "$@"
fi
