Home > @microsoft/rush-lib > CommonVersionsConfiguration > loadFromFileAsync
CommonVersionsConfiguration.loadFromFileAsync() 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 loadFromFileAsync(jsonFilePath: string, rushConfiguration?: RushConfiguration): Promise<CommonVersionsConfiguration>;
Parameters
Parameter | Type | Description |
|---|---|---|
jsonFilePath | string | |
rushConfiguration | (Optional) |
Returns:
Promise<CommonVersionsConfiguration>