(filePath: string)
| 112 | } |
| 113 | |
| 114 | export function readJsoncFile<T = unknown>(filePath: string): T | null { |
| 115 | try { |
| 116 | return parseJsonc<T>(readFileSync(filePath, "utf-8")); |
| 117 | } catch (_error) { |
| 118 | return null; |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | export function detectConfigFile(basePath: string): { |
| 123 | format: "json" | "jsonc" | "none"; |
no test coverage detected