Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > RepoStateFile > loadFromFile

RepoStateFile.loadFromFile() method

Loads the repo-state.json data from the specified file path. If the file has not been created yet, then an empty object is returned.

Signature:

static loadFromFile(jsonFilename: string): RepoStateFile;

Parameters

Parameter

Type

Description

jsonFilename

string

The path to the repo-state.json file.

Returns:

RepoStateFile