16 lines
632 B
JavaScript
16 lines
632 B
JavaScript
/** Exercise the wheel's external Office package from a shipped dsh profile. */
|
|
import { writeFile } from 'node:fs/promises'
|
|
import { createConverter } from '@deepseek-ai/libreoffice-kit'
|
|
|
|
export const name = 'python-sdk-office-smoke'
|
|
|
|
export async function apply(_ctx, config) {
|
|
const converter = await createConverter({ timeoutMs: 120_000 })
|
|
try {
|
|
const result = await converter.render({ inputPath: config.input, outputPath: config.output })
|
|
await writeFile(config.result, JSON.stringify({ ...result, moduleUrl: import.meta.resolve('@deepseek-ai/libreoffice-kit') }))
|
|
} finally {
|
|
await converter.dispose()
|
|
}
|
|
}
|