44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
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;
|
|
skipChildCompilers: boolean;
|
|
}
|
|
export { ConstructedOptions };
|