fix(coding-agent): omit devDependencies when installing packages (fixes #3009)
This commit is contained in:
@@ -145,6 +145,8 @@ To share extensions via npm or git as pi packages, see [packages.md](packages.md
|
||||
|
||||
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.
|
||||
|
||||
For distributed pi packages installed with `pi install` (npm or git), runtime deps must be in `dependencies`. Package installation uses production installs (`npm install --omit=dev`), so `devDependencies` are not available at runtime.
|
||||
|
||||
Node.js built-ins (`node:fs`, `node:path`, etc.) are also available.
|
||||
|
||||
## Writing an Extension
|
||||
|
||||
Reference in New Issue
Block a user