UNPKG

@jspm/generator

Version:

Package Import Map Generation Tool

10 lines (9 loc) 470 B
import { ExactPackage, LatestPackageTarget } from "../install/package.js"; import { Resolver } from "../trace/resolver.js"; export declare function pkgToUrl(pkg: ExactPackage): Promise<`${string}/`>; export declare function parseUrlPkg(url: string): { registry: string; name: string; version: string; }; export declare function resolveLatestTarget(this: Resolver, target: LatestPackageTarget, layer: string, parentUrl: string): Promise<ExactPackage | null>;