(csvPath: string)
| 70 | |
| 71 | /** The `schema.json` path for a database's `data.csv` path, or null. */ |
| 72 | export function databaseSchemaPathFor(csvPath: string): string | null { |
| 73 | const dir = formDirFromCsvPath(csvPath) |
| 74 | return dir ? `${dir}/${FORM_SCHEMA_FILE}` : null |
| 75 | } |
| 76 | |
| 77 | /** The pages-dir path for a database's `data.csv` path, or null. */ |
| 78 | export function pagesDirFromCsvPath(csvPath: string): string | null { |
no test coverage detected