UNPKG

@allgemein/moduls

Version:

Commons-moduls handles and manages contextual moduls for complex and modular applications.

31 lines (30 loc) 802 B
import { ICache } from './ICache'; export interface IModuleRegistryOptions { packageFilter?: (packageJson: any) => boolean; /** * Paths to begin lookup for modules */ paths: string[]; /** * Path pattern to look for futher modules, fix pattern is the "node_modules" directory */ pattern?: string[]; depth?: number; module?: NodeModule; /** * how should error be handled for already existsing moduls */ handleErrorOnDuplicate?: 'log' | 'skip' | 'throw'; /** * for performace reasons the scanned directories can be cached */ cache?: ICache; /** * Glob pattern to exclude some directories. */ exclude?: string[]; /** * Glob pattern to include some directories. */ include?: string[]; }