1 | import { LicenseTest } from './LicenseTest';
|
---|
2 | import { LicenseIdentifiedModule } from './LicenseIdentifiedModule';
|
---|
3 | import { IncludeExcludeTest } from './IncludeExcludeTest';
|
---|
4 | import { Module } from './Module';
|
---|
5 | import { ConstructedStats } from './ConstructedStats';
|
---|
6 | interface ConstructedOptions {
|
---|
7 | buildRoot: string;
|
---|
8 | licenseInclusionTest: LicenseTest;
|
---|
9 | unacceptableLicenseTest: LicenseTest;
|
---|
10 | handleUnacceptableLicense: (packageName: string, licenseType: string) => void;
|
---|
11 | handleMissingLicenseText: (packageName: string, licenseType: string | null) => string | null;
|
---|
12 | perChunkOutput: boolean;
|
---|
13 | licenseTemplateDir?: string;
|
---|
14 | licenseFileOverrides: {
|
---|
15 | [key: string]: string;
|
---|
16 | };
|
---|
17 | licenseTextOverrides: {
|
---|
18 | [key: string]: string;
|
---|
19 | };
|
---|
20 | licenseTypeOverrides: {
|
---|
21 | [key: string]: string;
|
---|
22 | };
|
---|
23 | renderLicenses: (modules: LicenseIdentifiedModule[]) => string;
|
---|
24 | renderBanner: (filename: string, modules: LicenseIdentifiedModule[]) => string;
|
---|
25 | outputFilename: string;
|
---|
26 | addBanner: boolean;
|
---|
27 | chunkIncludeExcludeTest: IncludeExcludeTest;
|
---|
28 | modulesDirectories: string[] | null;
|
---|
29 | additionalChunkModules: {
|
---|
30 | [chunkName: string]: Module[];
|
---|
31 | };
|
---|
32 | additionalModules: Module[];
|
---|
33 | preferredLicenseTypes: string[];
|
---|
34 | handleLicenseAmbiguity: (packageName: string, licenses: {
|
---|
35 | type: string;
|
---|
36 | url: string;
|
---|
37 | }[]) => string;
|
---|
38 | handleMissingLicenseType: (packageName: string) => string | null;
|
---|
39 | excludedPackageTest: (packageName: string) => boolean;
|
---|
40 | stats: ConstructedStats;
|
---|
41 | skipChildCompilers: boolean;
|
---|
42 | }
|
---|
43 | export { ConstructedOptions };
|
---|