-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat: install local plugin dependencies from package.json #6302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: install local plugin dependencies from package.json #6302
Conversation
82c8083 to
75d2a2c
Compare
75d2a2c to
3d1cff5
Compare
|
/review |
|
Suggestion: The new "Dependencies" section in
Since this PR enables local plugin dependencies, this old text should be updated to reflect the new behavior. Consider updating line 50 to remove the statement about dependencies not being installed automatically. |
|
Fixed — I rebased incorrectly on mobile after #6301. |
…6302) Co-authored-by: OpenCode <opencode@example.com>
…6302) Co-authored-by: OpenCode <opencode@example.com>
…6302) Co-authored-by: OpenCode <opencode@example.com>
Enables local plugins and custom tools to use external npm dependencies by running
bun installafter adding@opencode-ai/plugin..opencode/plugin/previously could not use external npm packages. If a plugin imported a package likeshescape, it would SILENTLY fail because dependencies were not installed and the tool would throw.bun installto install any additional dependencies defined in the config directory'spackage.json.usage:
Add a
package.jsonto your.opencode/directory:{ "dependencies": { "shescape": "^2.1.0" } }