diff options
| author | Aiden Cline <[email protected]> | 2025-08-13 12:25:04 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 12:25:04 -0500 |
| commit | 0c4fe73cbfb44df7bcb9eb2981438f164882dbb9 (patch) | |
| tree | 9964181070b4b3838f4c3fbeb0cc3373ceb1836f | |
| parent | e132f6183d3ceb6c650119a1e5608f62e6c2cf69 (diff) | |
| download | opencode-0c4fe73cbfb44df7bcb9eb2981438f164882dbb9.tar.gz opencode-0c4fe73cbfb44df7bcb9eb2981438f164882dbb9.zip | |
fix: js plugin support as per documentation (#1896)
| -rw-r--r-- | packages/opencode/src/config/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index f8acac390..b49912f39 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -105,8 +105,8 @@ export namespace Config { result.plugin = result.plugin || [] result.plugin.push( ...[ - ...(await Filesystem.globUp("plugin/*.ts", Global.Path.config, Global.Path.config)), - ...(await Filesystem.globUp(".opencode/plugin/*.ts", app.path.cwd, app.path.root)), + ...(await Filesystem.globUp("plugin/*.{ts,js}", Global.Path.config, Global.Path.config)), + ...(await Filesystem.globUp(".opencode/plugin/*.{ts,js}", app.path.cwd, app.path.root)), ].map((x) => "file://" + x), ) |
