refactor: unwrap PluginMeta namespace + self-reexport (#22945)
This commit is contained in:
parent
fb02744460
commit
974fa1b8b1
1 changed files with 147 additions and 147 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue