Add note about npm dependencies in extensions

This commit is contained in:
Mario Zechner 2026-01-05 02:48:18 +01:00
parent f4a3724b7e
commit c8cfef7225

View file

@ -143,6 +143,8 @@ The `package.json` approach enables:
| `@mariozechner/pi-ai` | AI utilities (`StringEnum` for Google-compatible enums) |
| `@mariozechner/pi-tui` | TUI components for custom rendering |
npm dependencies work too. Add a `package.json` next to your extension (or in a parent directory), run `npm install`, and imports from `node_modules/` are resolved automatically.
Node.js built-ins (`node:fs`, `node:path`, etc.) are also available.
## Writing an Extension