Brought to you by Allons-y Studio

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

OpxConfig

The defaults when the file does not exist.

Throws

An error naming the file when it exists but is empty or malformed.