Skip to content

Commit 020b05f

Browse files
docs(plugins): align package.json peers with @opencode/plugin
Fixes anomalyco#58807 The publish example's peer ranges were below what @opencode/plugin requires, so following the docs could fail npm resolution. Use the ranges the package declares. The optional @opencode/theme peer is left out: an exact pin would break the example again on the next release, and only plugins that import the package need it. Also note that a configured directory with no root `server` (or `index`) or `gui-experimental` module is skipped without a warning.
1 parent a8091a2 commit 020b05f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎services/www/src/docs/content/build/plugins/cli.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ Expose the TUI plugin through `./tui`; add OpenTUI peers when the plugin renders
646646
"@opencode/plugin": "latest"
647647
},
648648
"peerDependencies": {
649-
"@opentui/core": ">=0.6.6",
650-
"@opentui/solid": ">=0.6.6",
649+
"@opentui/core": ">=0.8.0",
650+
"@opentui/solid": ">=0.8.0",
651651
"solid-js": ">=1.9.0"
652652
}
653653
}

‎services/www/src/docs/content/plugins.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Add published packages, versioned packages, scoped packages, or local plugin dir
3131
Relative paths resolve from the config file containing the entry.
3232

3333
Configured local paths must be directories. A path to a single file is skipped. See [Load](/build/plugins#load) for
34-
how OpenCode finds each part in a directory.
34+
how OpenCode finds each part in a directory. A directory with no `server` (or `index`) or `gui-experimental` module is
35+
skipped without a warning.
3536

3637
Plugin arrays from applicable config files are applied from lowest to highest precedence instead of replacing one
3738
another.

0 commit comments

Comments
 (0)