Home > @microsoft/rush-lib > RushConfiguration > getPnpmfilePath

RushConfiguration.getPnpmfilePath() method

Gets the absolute path for “pnpmfile.js” for a specific variant.

Signature:

getPnpmfilePath(variant?: string | undefined): string;

Parameters

Parameter Type Description
variant string | undefined The name of the current variant in use by the active command.

Returns:

string

Remarks

The file path is returned even if PNPM is not configured as the package manager.