Write the retired single-file declaration (no issues/ dir).
(content: string)
| 22 | |
| 23 | /** Write the retired single-file declaration (no issues/ dir). */ |
| 24 | async function writeLegacyDecl(content: string): Promise<void> { |
| 25 | await mkdir(join(dir, '.alice'), { recursive: true }) |
| 26 | await writeFile(join(dir, '.alice', 'issue.json'), content, 'utf8') |
| 27 | } |
| 28 | |
| 29 | const fm = (front: string, body = ''): string => `---\n${front}\n---\n${body}` |
| 30 |