Skip to content

Conversation

@elithrar
Copy link
Contributor

@elithrar elithrar commented Dec 28, 2025

Enables local plugins and custom tools to use external npm dependencies by running bun install after adding @opencode-ai/plugin.

  • local plugins in .opencode/plugin/ previously could not use external npm packages. If a plugin imported a package like shescape, it would SILENTLY fail because dependencies were not installed and the tool would throw.
  • we now also run bun install to install any additional dependencies defined in the config directory's package.json.

usage:

Add a package.json to your .opencode/ directory:

{
  "dependencies": {
    "shescape": "^2.1.0"
  }
}

@elithrar elithrar force-pushed the feat/local-plugin-dependencies branch from 82c8083 to 75d2a2c Compare December 28, 2025 16:22
@elithrar elithrar force-pushed the feat/local-plugin-dependencies branch from 75d2a2c to 3d1cff5 Compare December 28, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant