// Empties the Go embed directory but keeps .gitkeep, so `go build` always works. import { readdirSync, rmSync } from 'node:fs' import { join } from 'node:path' const dist = new URL('../../internal/adminui/dist', import.meta.url).pathname for (const name of readdirSync(dist)) { if (name !== '.gitkeep') rmSync(join(dist, name), { recursive: true, force: true }) }