(root: string, file: string, content: string)
| 16 | } |
| 17 | |
| 18 | async function write(root: string, file: string, content: string) { |
| 19 | const filePath = path.join(root, file); |
| 20 | await mkdir(path.dirname(filePath), { recursive: true }); |
| 21 | await Bun.write(filePath, content); |
| 22 | } |
| 23 | |
| 24 | function stable(value: unknown): string { |
| 25 | if (Array.isArray(value)) { |