UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

5 lines (4 loc) 2.73 kB
import type { OptionDefinition } from "./types"; export declare const OPTION_DEFINITIONS: OptionDefinition[]; export declare const HELP_TEXT = "\nPastoralist - A utility CLI to manage your dependency overrides\n\nUsage: pastoralist [command] [options]\n\nCommands:\n init Initialize Pastoralist configuration interactively\n\nOptions:\n -v, --version Print the installed Pastoralist version\n --debug Enable debug mode\n --dry-run Preview changes without writing to package.json\n --outputFormat <format> Output format: text (default) or json\n -p, --path <path> Specifies a path to a package.json (default: \"package.json\")\n -d, --depPaths [paths...] Specifies glob paths to package.jsons\n --ignore [paths...] Specifies glob paths to ignore\n -r, --root <root> Specifies a root path\n -t, --isTestingCLI Enable CLI testing (no scripts run)\n --isTesting Enable testing mode (no scripts run)\n --init Initialize Pastoralist configuration interactively\n --checkSecurity Check for security vulnerabilities and generate overrides\n --forceSecurityRefactor Automatically apply security overrides without prompting\n --securityProvider <provider...> Security provider(s) to use (osv, github, snyk, npm, socket, spektion)\n --securityProviderToken <token> Security provider token for API access\n --interactive Run security checks in interactive mode\n --hasWorkspaceSecurityChecks Include workspace packages in security scan\n --promptForReasons Prompt for reasons when adding manual overrides\n --strict Fail on any security check errors (network failures, API errors)\n --summary Show summary metrics table after run\n -q, --quiet Quiet mode for CI (exit 1 if vulnerabilities, 0 if clean)\n --setup-hook Add postinstall script to run pastoralist automatically\n --remove-unused Remove unused overrides from package.json\n --cache-dir <path> Cache directory (default: node_modules/.cache/pastoralist/)\n --cache-ttl <seconds> Override cache TTL in seconds\n --no-cache Bypass cache reads and writes\n --refresh-cache Bypass cache reads, force refresh (still writes)\n"; export declare const ARGS_START_INDEX = 2;