Commit e60e068
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
- src
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments