mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
chore: make pi-test.sh runnable from any directory
This commit is contained in:
parent
cb4e4d8c9a
commit
56e27fef1d
3 changed files with 11 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ npm install # Install all dependencies
|
|||
npm run build # Build all packages
|
||||
npm run check # Lint, format, and type check
|
||||
./test.sh # Run tests (skips LLM-dependent tests without API keys)
|
||||
./pi-test.sh # Run pi from sources (must be run from repo root)
|
||||
./pi-test.sh # Run pi from sources (can be run from any directory)
|
||||
```
|
||||
|
||||
> **Note:** `npm run check` requires `npm run build` to be run first. The web-ui package uses `tsc` which needs compiled `.d.ts` files from dependencies.
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@ npm run build
|
|||
Run from source:
|
||||
|
||||
```bash
|
||||
./pi-test.sh
|
||||
/path/to/pi-mono/pi-test.sh
|
||||
```
|
||||
|
||||
The script can be run from any directory. Pi keeps the caller's current working directory.
|
||||
|
||||
## Forking / Rebranding
|
||||
|
||||
Configure via `package.json`:
|
||||
|
|
|
|||
|
|
@ -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[@]}"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue