Home > @microsoft/rush-lib > CommonVersionsConfiguration > loadFromFile
CommonVersionsConfiguration.loadFromFile() method
Loads the common-versions.json data from the specified file path. If the file has not been created yet, then an empty object is returned.
Signature:
static loadFromFile(jsonFilePath: string, rushConfiguration?: RushConfiguration): CommonVersionsConfiguration;
Parameters
Parameter | Type | Description |
|---|---|---|
jsonFilePath | string | |
rushConfiguration | (Optional) |
Returns: