Home > @microsoft/rush-lib > CobuildConfiguration > tryLoadAsync
CobuildConfiguration.tryLoadAsync() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Attempts to load the cobuild.json data from the standard file path common/config/rush/cobuild.json. If the file has not been created yet, then undefined is returned.
Signature:
static tryLoadAsync(terminal: ITerminal, rushConfiguration: RushConfiguration, rushSession: RushSession): Promise<CobuildConfiguration | undefined>;
Parameters
Parameter | Type | Description |
|---|---|---|
terminal | ||
rushConfiguration | ||
rushSession |
Returns:
Promise<CobuildConfiguration | undefined>