UNPKG

@jspm/generator

Version:

Package Import Map Generation Tool

13 lines (12 loc) 778 B
import { ExactPackage, LatestPackageTarget, PackageConfig } from "../install/package.js"; import { Resolver } from "../trace/resolver.js"; import { Install } from "../generator.js"; export declare function resolveBuiltin(specifier: string, env: string[]): string | Install | undefined; export declare function pkgToUrl(pkg: ExactPackage): Promise<`${string}/`>; export declare function getPackageConfig(this: Resolver, pkgUrl: string): Promise<PackageConfig | null | undefined>; export declare function parseUrlPkg(url: string): { pkg: ExactPackage; subpath: `./${string}` | null; layer: string; } | undefined; export declare function resolveLatestTarget(this: Resolver, target: LatestPackageTarget, _layer: string, parentUrl: string): Promise<ExactPackage | null>;