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, subspace: Subspace | undefined, variant?: string): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
rushConfiguration | The Rush configuration for the repo. | |
subspace | Subspace | undefined | The subspace that repo-state.json was loaded from, or |
variant | string | (Optional) |
Returns:
boolean
true if the file was modified, otherwise false.