import { join } from 'node:path'; import { generateIndex } from '../src/render_templates.ts'; if (import.meta.main) { const encoder = new TextEncoder(); Deno.writeFileSync( join(import.meta.dirname ?? '', '../build/index.html'), encoder.encode(generateIndex()) ); }