pastoralist
Version:
A tool to watch over node module resolutions and overrides
48 lines (47 loc) • 2.46 kB
TypeScript
import type { PromptChoice } from "./types";
export declare const WORKSPACE_TYPES: {
readonly standard: readonly ["packages/*/package.json", "apps/*/package.json"];
readonly "packages-only": readonly ["packages/*/package.json"];
readonly "apps-only": readonly ["apps/*/package.json"];
readonly custom: null;
};
export declare const MAIN_ACTION_CHOICES: PromptChoice[];
export declare const WORKSPACE_STRUCTURE_CHOICES: PromptChoice[];
export declare const DEFAULTS: {
readonly customPath: "packages/*/package.json";
readonly confirmChoice: true;
readonly saveConfig: true;
readonly skipConfirm: false;
};
export declare const MESSAGES: {
readonly monorepoDetected: "Monorepo configuration needed";
readonly skipWarning: "override(s) won't be tracked properly";
readonly saveSuccess: "Configuration will be saved to package.json";
readonly useOnceSuccess: "Using configuration for this run only";
readonly helpTitle: "Monorepo Support";
};
export declare const REVIEW_SECTION_CHOICES: PromptChoice[];
export declare const WORKSPACE_ACTION_CHOICES: PromptChoice[];
export declare const SECURITY_ACTION_CHOICES: PromptChoice[];
export declare const OVERRIDE_ACTION_CHOICES: PromptChoice[];
export declare const RESOLUTION_ACTION_CHOICES: PromptChoice[];
export declare const SECURITY_PROVIDER_CHOICES: PromptChoice[];
export declare const SEVERITY_THRESHOLD_CHOICES: PromptChoice[];
export declare const DEFAULT_WORKSPACE_PATHS = "packages/*/package.json, apps/*/package.json";
export declare const INTERACTIVE_MESSAGES: {
readonly welcome: "Interactive Configuration Review";
readonly selectSection: "What would you like to review?";
readonly currentConfig: "Current Configuration";
readonly workspaceConfig: "Workspace Configuration";
readonly securityConfig: "Security Configuration";
readonly overridesConfig: "Overrides";
readonly resolutionsConfig: "Resolutions";
readonly noOverrides: "No overrides configured";
readonly noResolutions: "No resolutions configured";
readonly configSaved: "Configuration saved successfully";
readonly noChanges: "No changes were made";
readonly exitMessage: "Exiting interactive configuration review";
readonly noConfig: "No package.json found. Please run this command from your project root.";
readonly overridesRemoved: (count: number) => string;
readonly resolutionsRemoved: (count: number) => string;
};