@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
15 lines (14 loc) • 664 B
text/typescript
import type { PackageJson } from "@visulima/package";
import type { BuildOptions, Format } from "../types.d.mts";
declare const runtimeExportConventions: Set<string>;
export type OutputDescriptor = {
exportKey?: string;
fieldName?: string;
file: string;
isExecutable?: true;
key: "bin" | "exports" | "main" | "module" | "types";
subKey?: typeof runtimeExportConventions | (NonNullable<unknown> & string);
type?: Format;
};
export declare const extractExportFilenames: (packageExports: PackageJson["exports"], packageType: "cjs" | "esm", declaration: BuildOptions["declaration"], conditions?: string[]) => OutputDescriptor[];
export {};