Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"typecheck": "tsc --noEmit",
"check": "npm run typecheck && npm run lint && npm run format:check",
"prepublishOnly": "npm run check && npm run clean && npm run build",
"prepare": "husky"
"prepare": "npm run build"
},
"lint-staged": {
"src/**/*.ts": [
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

import { OpencodeSyncPlugin } from './plugin/index.js';

// Only export the plugin as default - OpenCode expects a single default export
export default OpencodeSyncPlugin;
// OpenCode 1.17.x expects a V1 PluginModule: { id?, server: Plugin }
// Wrap the bare plugin function so the loader recognizes it.
export default { id: 'oc-sync', server: OpencodeSyncPlugin };