@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
38 lines (37 loc) • 1.66 kB
TypeScript
/**
* Package manager agent constants.
* Agent names, lockfile names, registry URLs, and configuration field names.
*/
// Agent names.
export declare const NPM = "npm";
export declare const PNPM = "pnpm";
export declare const YARN = "yarn";
export declare const BUN = "bun";
export declare const VLT = "vlt";
export declare const NPX = "npx";
// NPM binary path - resolved at runtime using which.
export declare const NPM_BIN_PATH: any;
// NPM CLI entry point - resolved at runtime from npm bin location.
// NOTE: This is kept for backward compatibility but NPM_BIN_PATH should be used instead
// because cli.js exports a function that must be invoked, not executed directly.
export declare const NPM_REAL_EXEC_PATH: any;
// NPM registry URL.
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org";
// Agent variants.
export declare const YARN_BERRY = "yarn/berry";
export declare const YARN_CLASSIC = "yarn/classic";
// Lock files.
export declare const PACKAGE_LOCK = "package-lock";
export declare const PACKAGE_LOCK_JSON = "package-lock.json";
export declare const NPM_SHRINKWRAP_JSON = "npm-shrinkwrap.json";
export declare const PNPM_LOCK = "pnpm-lock";
export declare const PNPM_LOCK_YAML = "pnpm-lock.yaml";
export declare const YARN_LOCK = "yarn.lock";
export declare const BUN_LOCK = "bun.lock";
export declare const BUN_LOCKB = "bun.lockb";
export declare const VLT_LOCK_JSON = "vlt-lock.json";
// Workspace configuration.
export declare const PNPM_WORKSPACE_YAML = "pnpm-workspace.yaml";
// Package.json fields for dependency overrides.
export declare const OVERRIDES = "overrides";
export declare const RESOLUTIONS = "resolutions";