UNPKG

@omlet/cli

Version:

Omlet (https://omlet.dev) is a component analytics tool that uses a CLI to scan your codebase to detect components and their usage. Get real usage insights from customizable charts to measure adoption across all projects and identify opportunities to impr

27 lines (26 loc) 976 B
import { CliError } from "../error"; import { type PathResolutionEntry } from "./pathResolutionMap"; import { type ProjectSetupResolver, type ProjectSetup } from "./projectUtils"; export declare enum ResolutionConfigIssueType { TargetNotExist = "TARGET_NOT_EXIST", TargetNotIncluded = "TARGET_NOT_INCLUDED" } export declare enum ResolutionConfigIssueLevel { Error = "ERROR", Warning = "WARNING" } export interface ResolutionConfigIssue { packageName: string; entry: PathResolutionEntry; type: ResolutionConfigIssueType; level: ResolutionConfigIssueLevel; } export declare class InvalidProjectSetup extends CliError { readonly issues: ResolutionConfigIssue[]; constructor(message: string, data: { issues?: ResolutionConfigIssue[]; extra?: Record<string, unknown>; }); get level(): ResolutionConfigIssueLevel; } export declare function validate(setup: ProjectSetup, resolver: ProjectSetupResolver): Promise<void>;