#!/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/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/bin/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/node_modules:/home/workspace/authHub/oauth2_web/node_modules:/home/workspace/authHub/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/authHub/oauth2_web/node_modules/esbuild/bin/node_modules:/home/workspace/authHub/oauth2_web/node_modules/esbuild/node_modules"
else
  export NODE_PATH="$NODE_PATH:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/bin/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules/esbuild/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/esbuild@0.14.54/node_modules:/home/workspace/authHub/oauth2_web/node_modules/.pnpm/node_modules:/home/workspace/authHub/oauth2_web/node_modules:/home/workspace/authHub/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/authHub/oauth2_web/node_modules/esbuild/bin/node_modules:/home/workspace/authHub/oauth2_web/node_modules/esbuild/node_modules"
fi
"$basedir/../esbuild/bin/esbuild"   "$@"
exit $?
