@jspm/generator
Version:
Package Import Map Generation Tool
13 lines (12 loc) • 700 B
TypeScript
import { ExactPackage, LatestPackageTarget, PackageConfig } from "../install/package.js";
import { Install } from "../generator.js";
export declare const nodeBuiltinSet: Set<string>;
export declare function pkgToUrl(pkg: ExactPackage, layer: string): Promise<`${string}/`>;
export declare function resolveBuiltin(specifier: string, env: string[]): string | Install | undefined;
export declare function getPackageConfig(): Promise<PackageConfig>;
export declare function resolveLatestTarget(target: LatestPackageTarget, layer: string, parentUrl: string): Promise<ExactPackage | null>;
export declare function parseUrlPkg(url: string): {
registry: string;
name: string;
version: string;
};