Skip to content

DetectPackageManagerOptions

Defined in: detect-package-manager.ts:10

Options for detectPackageManager.

optional fallback?: PackageManager

Defined in: detect-package-manager.ts:16

Returned when neither package.json nor a lockfile says. Defaults to "pnpm".


optional fileExists?: (path) => boolean

Defined in: detect-package-manager.ts:14

Replaces the lockfile existence check.

string

boolean


optional readFile?: (path) => string

Defined in: detect-package-manager.ts:12

Replaces the package.json read — for callers with an injected or in-memory filesystem.

string

string