UNPKG

ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

21 lines (20 loc) 958 B
import { NgEntryPoint } from '../ng-package/entry-point/entry-point'; import { EntryPointNode } from '../ng-package/nodes'; export type PackageExports = Record<string, ConditionalExport | string>; /** * Type describing the conditional exports descriptor for an entry-point. * https://nodejs.org/api/packages.html#packages_conditional_exports */ export type ConditionalExport = { types?: string; default?: string; }; /** * Generates the `package.json` package exports following APF v13. * This is supposed to match with: https://github.com/angular/angular/blob/e0667efa6eada64d1fb8b143840689090fc82e52/packages/bazel/src/ng_package/packager.ts#L415. */ export declare function generatePackageExports({ destinationPath, packageJson }: NgEntryPoint, entryPoints: EntryPointNode[]): PackageExports; /** * Generates a new version for the package `package.json` when runing in watch mode. */ export declare function generateWatchVersion(): string;