| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import { LicenseTest } from './LicenseTest';
- import { LicenseIdentifiedModule } from './LicenseIdentifiedModule';
- import { IncludeExcludeTest } from './IncludeExcludeTest';
- import { Module } from './Module';
- import { ConstructedStats } from './ConstructedStats';
- interface ConstructedOptions {
- buildRoot: string;
- licenseInclusionTest: LicenseTest;
- unacceptableLicenseTest: LicenseTest;
- handleUnacceptableLicense: ((packageName: string, licenseType: string) => void);
- handleMissingLicenseText: ((packageName: string, licenseType: string | null) => string | null);
- perChunkOutput: boolean;
- licenseTemplateDir?: string;
- licenseFileOverrides: {
- [key: string]: string;
- };
- licenseTextOverrides: {
- [key: string]: string;
- };
- licenseTypeOverrides: {
- [key: string]: string;
- };
- renderLicenses: ((modules: LicenseIdentifiedModule[]) => string);
- renderBanner: ((filename: string, modules: LicenseIdentifiedModule[]) => string);
- outputFilename: string;
- addBanner: boolean;
- chunkIncludeExcludeTest: IncludeExcludeTest;
- modulesDirectories: string[] | null;
- additionalChunkModules: {
- [chunkName: string]: Module[];
- };
- additionalModules: Module[];
- preferredLicenseTypes: string[];
- handleLicenseAmbiguity: ((packageName: string, licenses: {
- type: string;
- url: string;
- }[]) => string);
- handleMissingLicenseType: ((packageName: string) => string | null);
- excludedPackageTest: ((packageName: string) => boolean);
- stats: ConstructedStats;
- }
- export { ConstructedOptions };
|