mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:20:42 +00:00
fix: load source bundled plugins from pnpm workspaces
This commit is contained in:
@@ -22,7 +22,9 @@ falls back to npm automatically for packages that still use npm distribution.
|
||||
|
||||
- Node >= 22 and a package manager (npm or pnpm)
|
||||
- Familiarity with TypeScript (ESM)
|
||||
- For in-repo plugins: repository cloned and `pnpm install` done
|
||||
- For in-repo plugins: repository cloned and `pnpm install` done. Source
|
||||
checkout plugin development is pnpm-only because OpenClaw loads bundled
|
||||
plugins from the `extensions/*` workspace packages.
|
||||
|
||||
## What kind of plugin?
|
||||
|
||||
|
||||
@@ -93,6 +93,12 @@ Bundled plugin manifests must not request dependency staging. Large or optional
|
||||
plugin functionality should be packaged as a normal plugin and installed through
|
||||
the same npm/git/ClawHub path as third-party plugins.
|
||||
|
||||
In source checkouts, OpenClaw treats the repository as a pnpm monorepo. After
|
||||
`pnpm install`, bundled plugins load from `extensions/<id>` so package-local
|
||||
workspace dependencies are available and edits are picked up directly. Source
|
||||
checkout development is pnpm-only; plain `npm install` at the repository root is
|
||||
not a supported way to prepare bundled plugin dependencies.
|
||||
|
||||
## Legacy cleanup
|
||||
|
||||
Older OpenClaw versions generated bundled-plugin dependency roots at startup or
|
||||
|
||||
Reference in New Issue
Block a user