Skip to content

Commit e60e068

Browse files
authored
move test fns outside of top level index to fix filter and slice errors (#10)
A user reported that "/opencode-warp@0.1.1 crashes on startup hooks with errors like "parts.filter is not a function" and "str.slice is not a function"." Both of these errors seem to be coming from test helper functions that are exported from the top level index.ts fn in our plugin module. [In older versions of opencode](anomalyco/opencode#13543), each function exported out of a module is automatically called as a plugin builder, so it makes sense that these functions would cause compilation errors because they are not meant to be called as plugin builders. The fix is just to move the helper functions to their own util file.
1 parent 1dc4769 commit e60e068

6 files changed

Lines changed: 205 additions & 193 deletions

File tree

node_modules/.package-lock.json

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@warp-dot-dev/opencode-warp",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Warp terminal integration for OpenCode — native notifications and more",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)