(settings: Settings)
| 37 | } |
| 38 | |
| 39 | export async function writeSettings(settings: Settings): Promise<void> { |
| 40 | if (!existsSync(configuration.consortiumHomeDir)) { |
| 41 | await mkdir(configuration.consortiumHomeDir, { recursive: true }) |
| 42 | } |
| 43 | await writeFile(configuration.settingsFile, JSON.stringify(settings, null, 2)) |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Atomically update settings with file locking |
nothing calls this directly
no outgoing calls
no test coverage detected