detectAgent
const detectAgent: ( ...args: [options: Options]) => Effect< "npm" | "pnpm" | "yarn-classic" | "yarn-berry", PlatformError | SchemaError | PackageManagerError, FileSystem | Path>Defined in: index.ts:257
packageManager, then lockfile, then caller user-agent, then npm. Conflicting lockfiles fail.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[options: Options] |
Returns
Section titled “Returns”Effect<"npm" | "pnpm" | "yarn-classic" | "yarn-berry", |
PlatformError | SchemaError |
PackageManagerError,
FileSystem | Path>