RoadmapShopEvents
Skip to main content

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

ParameterTypeDescription
rushConfigurationRushConfigurationThe Rush configuration for the repo.

Returns:

boolean

true if the file was modified, otherwise false.