( filePath: string, config: Record<string, unknown> )
| 100 | } |
| 101 | |
| 102 | export async function writeJsonConfig( |
| 103 | filePath: string, |
| 104 | config: Record<string, unknown> |
| 105 | ): Promise<void> { |
| 106 | await mkdir(dirname(filePath), { recursive: true }); |
| 107 | await writeFile(filePath, JSON.stringify(config, null, 2) + "\n", "utf-8"); |
| 108 | } |
| 109 | |
| 110 | export async function readTomlServerExists(filePath: string, serverName: string): Promise<boolean> { |
| 111 | try { |
no outgoing calls
no test coverage detected