Samuel Shuert | 274a4d6 | 2023-12-01 15:04:55 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") |
| 3 | |
| 4 | case `uname` in |
| 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; |
| 6 | esac |
| 7 | |
| 8 | if [ -z "$NODE_PATH" ]; then |
| 9 | export NODE_PATH="/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/bin/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/node_modules" |
| 10 | else |
| 11 | export NODE_PATH="/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/bin/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/typescript@5.3.2/node_modules:/home/coded/Documents/programming/AoC/2023/node_modules/.pnpm/node_modules:$NODE_PATH" |
| 12 | fi |
| 13 | if [ -x "$basedir/node" ]; then |
| 14 | exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@" |
| 15 | else |
| 16 | exec node "$basedir/../typescript/bin/tsserver" "$@" |
| 17 | fi |