@pnpm/git-resolver
Version:
Resolver for git-hosted packages
15 lines (14 loc) • 401 B
TypeScript
export declare type HostedPackageSpec = ({
fetchSpec: string;
hosted?: {
type: string;
user: string;
project: string;
committish: string;
tarball: () => string | undefined;
};
normalizedPref: string;
gitCommittish: string | null;
gitRange?: string;
});
export default function parsePref(pref: string): Promise<HostedPackageSpec | null>;