import { join, parse } from 'node:path' import { execa } from 'execa' /** * A post-step on the file `@/demo/drive` already wrote. It touches neither * the compiler nor the driving code, which is why deferring it out of the * feature that shipped first cost no rework. */ const CONVERTER_BIN = 'ffmpeg' export const INSTALL_CONVERTER = 'ffmpeg (see https://ffmpeg.org/download.html)' export type ContainerResult = | { status: 'converted'; mp4Path: string } | { status: 'skipped'; reason: 'converter-missing' } | { status: 'failed'; reason: string } /** * Writes mp4 beside the webm rather than instead of it, since both stated use * cases are a `