Brought to you by Allons-y Studio

Type Alias: PackageManagerInfo

type PackageManagerInfo = {
  certain: boolean;
  name: PackageManager;
  reason: string;
  workspaceRoot: boolean;
  yarnClassic: boolean;
};

Defined in: pkg-manager.ts:20

What inspectPackageManager found.

Properties

Property Type Description Defined in
certain boolean False when the project points at more than one manager, so running a command could use the wrong one. pkg-manager.ts:24
name PackageManager The package manager to use. pkg-manager.ts:22
reason string Where the answer came from, or what conflicts. pkg-manager.ts:26
workspaceRoot boolean Whether the project root is a workspace root, where adding a package needs an extra flag on pnpm and Yarn Classic. pkg-manager.ts:28
yarnClassic boolean Whether the manager is Yarn Classic (v1), which takes different flags than Yarn 2+. pkg-manager.ts:30