()
| 411 | } |
| 412 | |
| 413 | export async function readLocalSchemaFile() { |
| 414 | const readCandidates = getSchemaReadCandidates(); |
| 415 | const res = await loadConfig({ |
| 416 | sources: readCandidates, |
| 417 | merge: false, |
| 418 | }); |
| 419 | if (!res.config) return; |
| 420 | const relativePath = path.relative(process.cwd(), res.sources[0]); |
| 421 | return { path: relativePath, schema: res.config }; |
| 422 | } |
| 423 | |
| 424 | export async function readLocalEmailFile(emailPath) { |
| 425 | const readCandidates = getEmailReadCandidates(emailPath); |
nothing calls this directly
no test coverage detected