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

RepoStateFile.refreshState() method

Refresh the data contained in repo-state.json using the current state of the Rush repo, and save the file if changes were made.

Signature:

refreshState(rushConfiguration: RushConfiguration): boolean;

Parameters

Parameter Type Description
rushConfiguration RushConfiguration The Rush configuration for the repo.

Returns:

boolean

true if the file was modified, otherwise false.