(filePath: string, file: DeepnoteFile)
| 11 | } |
| 12 | |
| 13 | export async function saveDeepnoteFile(filePath: string, file: DeepnoteFile): Promise<void> { |
| 14 | const absolutePath = path.resolve(filePath) |
| 15 | const content = serializeDeepnoteFile(file) |
| 16 | await fs.writeFile(absolutePath, content, 'utf-8') |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Format output based on compact mode - omit null/empty, use single-line JSON |
no test coverage detected