refactor: unwrap PluginMeta namespace + self-reexport (#22945)
This commit is contained in:
@@ -8,7 +8,6 @@ import { Flock } from "@opencode-ai/shared/util/flock"
|
|||||||
|
|
||||||
import { parsePluginSpecifier, pluginSource } from "./shared"
|
import { parsePluginSpecifier, pluginSource } from "./shared"
|
||||||
|
|
||||||
export namespace PluginMeta {
|
|
||||||
type Source = "file" | "npm"
|
type Source = "file" | "npm"
|
||||||
|
|
||||||
export type Theme = {
|
export type Theme = {
|
||||||
@@ -185,4 +184,5 @@ export namespace PluginMeta {
|
|||||||
const file = storePath()
|
const file = storePath()
|
||||||
return Flock.withLock(lock(file), async () => read(file))
|
return Flock.withLock(lock(file), async () => read(file))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
export * as PluginMeta from "./meta"
|
||||||
|
|||||||
Reference in New Issue
Block a user