UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

23 lines (22 loc) 1.43 kB
import { Effect } from '../../effect.js'; import type { PluginInfo } from './index.js'; export declare const getRegistry: Effect.Effect<string, import("effect/Cause").UnknownException, never>; export declare const fetchPackageVersions: (packageName: string) => Effect.Effect<Error | string[], import("effect/Cause").UnknownException, never>; /** * Resolves package with a given range to a STABLE version * peerDependencies might specify a compatible prerelease, * but `studiocms add` should only ever install stable releases */ export declare const resolveRangeToInstallSpecifier: (name: string, range: string) => Effect.Effect<string, import("effect/Cause").UnknownException, never>; export declare const convertPluginsToInstallSpecifiers: (plugins: PluginInfo[]) => Effect.Effect<string[], import("effect/Cause").UnknownException, never>; export declare const fetchPackageJson: (scope: string | undefined, name: string, tag: string) => Effect.Effect<any, import("effect/Cause").UnknownException, never>; export declare const parseNpmName: (spec: string) => Effect.Effect<{ scope: string | undefined; name: string; subpath: string | undefined; } | undefined, import("effect/Cause").UnknownException, never>; export declare const parsePluginName: (spec: string) => Effect.Effect<{ scope: string | undefined; name: string; tag: string; } | undefined, import("effect/Cause").UnknownException, never>;