Function: readConfig()
function readConfig(cwd): OpxConfig;
Defined in: state.ts:85
Read .opx/config.json, filling gaps with defaults.
Parameters
| Parameter | Type | Description |
|---|---|---|
cwd |
string |
The repository root. |
Returns
The defaults when the file does not exist.
Throws
An error naming the file when it exists but is empty or malformed.