UNPKG

@visulima/packem

Version:

A fast and modern bundler for Node.js and TypeScript.

15 lines (14 loc) 662 B
import type { PackageJson } from "@visulima/package"; import type { BuildOptions } from "../types.d.ts"; declare const runtimeExportConventions: Set<string>; export type OutputDescriptor = { exportKey?: string; fieldName?: string; file: string; isExecutable?: true; key: "exports" | "main" | "types" | "module" | "bin"; subKey?: typeof runtimeExportConventions | (NonNullable<unknown> & string); type?: "cjs" | "esm"; }; export declare const extractExportFilenames: (packageExports: PackageJson["exports"], packageType: "esm" | "cjs", declaration: BuildOptions["declaration"], conditions?: string[]) => OutputDescriptor[]; export {};