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

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/node_modules:/home/workspace/aops-hermes/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules/@typescript-eslint/eslint-plugin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules/@typescript-eslint/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules"
else
  export NODE_PATH="$NODE_PATH:/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/typescript@4.9.5/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/node_modules:/home/workspace/aops-hermes/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules/@typescript-eslint/eslint-plugin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules/@typescript-eslint/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@typescript-eslint+eslint-plugin@8.3.0_83ae85bb0c8b50bb673c3965c7117445/node_modules"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../../../../../../typescript@4.9.5/node_modules/typescript/bin/tsserver" "$@"
else
  exec node  "$basedir/../../../../../../typescript@4.9.5/node_modules/typescript/bin/tsserver" "$@"
fi
