跳到內容

pluginPackage

本頁內容尚未翻譯。

const pluginPackage: (
...args: [name: string, options: Options]
) => Effect<
string,
| PlatformError
| SchemaError
| PackageManagerError
| PluginNotFound
| AmbiguousPluginName,
ChildProcessSpawner | FileSystem | Path
>

Defined in: index.ts:165

The package a plugin name refers to. Scoped and graft-plugin-* names stay as they are. A short name such as review is whichever of @graftland/plugin-review and graft-plugin-review the registry has; the two conventions rank equally, so a name that matches both fails.

Parameter Type
…args [name: string, options: Options]

Effect<string, | PlatformError | SchemaError | PackageManagerError | PluginNotFound | AmbiguousPluginName, ChildProcessSpawner | FileSystem | Path>