Icard/angular-clarity-master(work.../node_modules/license-webpack-plugin/dist/PluginFileHandler.d.ts

21 lines
878 B
TypeScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import { FileHandler } from './FileHandler';
import { FileSystem } from './FileSystem';
import { LicenseIdentifiedModule } from './LicenseIdentifiedModule';
declare class PluginFileHandler implements FileHandler {
private fileSystem;
private buildRoot;
private modulesDirectories;
excludedPackageTest: (packageName: string) => boolean;
private cache;
constructor(fileSystem: FileSystem, buildRoot: string, modulesDirectories: string[] | null, excludedPackageTest: (packageName: string) => boolean);
static PACKAGE_JSON: string;
getModule(filename: string): LicenseIdentifiedModule | null;
isInModuleDirectory(filename: string): boolean;
isBuildRoot(filename: string): boolean;
private getModuleInternal;
private findModuleDir;
private parsePackageJson;
private dirContainsValidPackageJson;
}
export { PluginFileHandler };