44 lines
1.9 KiB
Bash
44 lines
1.9 KiB
Bash
#!/bin/sh
|
|||
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||
|
|
basedir_win="$basedir"
|
||
|
|
exe=""
|
||
|
|
msys=""
|
||
|
|
|
||
|
|
case `uname -a` in
|
||
|
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||
|
|
if command -v cygpath > /dev/null 2>&1; then
|
||
|
|
basedir_win=`cygpath -w "$basedir"`
|
||
|
|
fi
|
||
|
|
exe=".exe"
|
||
|
|
msys="true"
|
||
|
|
;;
|
||
|
|
*WSL2*)
|
||
|
|
if command -v wslpath > /dev/null 2>&1; then
|
||
|
|
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
||
|
|
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
||
|
|
basedir_win="$basedir"
|
||
|
|
else
|
||
|
|
exe=".exe"
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
;;
|
||
|
|
esac
|
||
|
|
|
||
|
|
if [ -z "$NODE_PATH" ]; then
|
||
|
|
export NODE_PATH="/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/typescript@5.9.3/node_modules:/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/node_modules"
|
||
|
|
else
|
||
|
|
export NODE_PATH="/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/typescript@5.9.3/node_modules:/mnt/c/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||
|
|
fi
|
||
|
|
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
||
|
|
exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsc" "$@"
|
||
|
|
elif [ -x "$basedir/node" ]; then
|
||
|
|
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
||
|
|
elif command -v node >/dev/null 2>&1; then
|
||
|
|
exec node "$basedir/../typescript/bin/tsc" "$@"
|
||
|
|
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
||
|
|
exec node.exe "$basedir_win/../typescript/bin/tsc" "$@"
|
||
|
|
else
|
||
|
|
exec node "$basedir/../typescript/bin/tsc" "$@"
|
||
|
|
fi
|
||
|
|
# cmd-shim-target=C:/Users/BY-OY/Desktop/code/chongchong-global-dev/apps/admin-web/node_modules/typescript/bin/tsc
|