| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @microsoft/rush-lib > RepoStateFile
This file is used to track the state of various Rush-related features. It is generated and updated by Rush.
Signature:
export declare class RepoStateFile |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string |
Get the absolute file path of the repo-state.json file. | |
|
|
boolean |
If false, the repo-state.json file is not valid and its values cannot be relied upon | |
|
|
string | undefined |
The hash of all preferred versions at the end of the last update. | |
|
|
string | undefined |
The hash of the PNPM catalog definitions at the end of the last update. | |
|
|
string | undefined |
The hash of the pnpm shrinkwrap file at the end of the last update. | |
|
|
string | undefined |
The hash of all preferred versions at the end of the last update. |
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
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. | |
|
Refresh the data contained in repo-state.json using the current state of the Rush repo, and save the file if changes were made. |