import { IFileIO } from '../common/runtime.ts'; import { appendFile } from 'node:fs/promises'; const BunFileIO: IFileIO = { openFile: async (path: string): Promise => { const file = await Bun.file(path); return await file.text(); }, appendFile: async function (path: string, contents: string): Promise { return await appendFile(path, contents); }, saveFile: async function (path: string, contents: string): Promise { await Bun.write(path, contents); return; }, }; export default BunFileIO;