fix: prevent plugin crash by removing non-function exports from barrel files
BREAKING: OpenCode plugin loader calls all exports as functions. Exporting non-function values (schemas, constants, types) causes TypeError. Changes: - Remove OhMyOpenCodeConfigSchema export from root index.ts - Replace 'export *' with explicit function exports in hooks/index.ts - Remove 'export *' from comment-checker/index.ts
This commit is contained in:
@@ -94,8 +94,4 @@ export function createCommentCheckerHooks() {
|
||||
}
|
||||
}
|
||||
|
||||
export * from "./types"
|
||||
export * from "./constants"
|
||||
export * from "./detector"
|
||||
export * from "./filters"
|
||||
export * from "./output"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user