mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
docs(coding-agent): document pi-package keyword for npm discoverability
This commit is contained in:
parent
353ac792eb
commit
9dc2b9b163
2 changed files with 18 additions and 0 deletions
|
|
@ -242,6 +242,18 @@ To include resources from another pi package, add it as a dependency with `bundl
|
|||
|
||||
`bundledDependencies` embeds the package inside your tarball, preserving the `node_modules/` structure. Without it, npm's hoisting could move the dependency elsewhere, breaking the paths.
|
||||
|
||||
**Discoverability:** Add the `pi-package` keyword to your `package.json` so users can find your package on npm:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "my-extension-pack",
|
||||
"keywords": ["pi-package", "pi-extension", "..."],
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Search for pi packages: `curl -s "https://registry.npmjs.org/-/v1/search?text=keywords:pi-package"`
|
||||
|
||||
The `package.json` approach enables:
|
||||
- Multiple extensions from one package
|
||||
- Skills, prompts, and themes declared alongside extensions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue