UNPKG

generate-license-file

Version:

Generates a text file containing all of the licenses for your production dependencies

22 lines (21 loc) 1.41 kB
import { AppendOption } from "./options/append"; import { ExcludeOption } from "./options/exclude"; import { LineEndingOption } from "./options/lineEnding"; import { OmitVersionsOption } from "./options/omitVersions"; import { IntersectionExpander } from "./options/optionsExpander"; import { ReplaceOption } from "./options/replace"; export type GenerateLicenseFileOptions = IntersectionExpander<LineEndingOption & ReplaceOption & ExcludeOption & AppendOption & OmitVersionsOption>; /** * Scans the project found at the given path and creates a license file at the given output location * @param pathToPackageJson A path to the package.json for the project * @param outputPath A file path for the resulting license file * @param options Additional options for the license file generation */ export declare function generateLicenseFile(pathToPackageJson: string, outputPath: string, options?: GenerateLicenseFileOptions): Promise<void>; /** * Scans the projects found at the given paths and creates a license file at the given output location * @param pathsToPackageJsons Paths to the package.jsons for the projects * @param outputPath A file path for the resulting license file * @param options Additional options for the license file generation */ export declare function generateLicenseFile(pathsToPackageJsons: string[], outputPath: string, options?: GenerateLicenseFileOptions): Promise<void>;