chore: make pi-test.sh runnable from any directory
This commit is contained in:
@@ -53,4 +53,10 @@ if [[ "$NO_ENV" == "true" ]]; then
|
||||
echo "Running without API keys..."
|
||||
fi
|
||||
|
||||
npx tsx "$SCRIPT_DIR/packages/coding-agent/src/cli.ts" ${ARGS[@]+"${ARGS[@]}"}
|
||||
TSX_BIN="$SCRIPT_DIR/node_modules/.bin/tsx"
|
||||
if [[ ! -x "$TSX_BIN" ]]; then
|
||||
echo "tsx not found at $TSX_BIN. Run npm install from the repo root first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$TSX_BIN" "$SCRIPT_DIR/packages/coding-agent/src/cli.ts" ${ARGS[@]+"${ARGS[@]}"}
|
||||
|
||||
Reference in New Issue
Block a user