Files
Veyra/apps/admin/scripts/embed.mjs
T
Blizzard ba6dfffab7
Checks / verify (push) Canceled after 41s
init: initial commit
2026-10-06 11:24:02 +08:00

9 lines
589 B
JavaScript

import { cp, mkdir, rm } from "node:fs/promises"
const target = new URL("../../../services/api/internal/platform/adminui/dist/", import.meta.url)
await mkdir(target, { recursive: true })
// Preserve the tracked .keep so a clean checkout can build the foundation API.
const { readdir } = await import("node:fs/promises")
for (const file of await readdir(target)) if (file !== ".keep") await rm(new URL(file, target), { recursive: true, force: true })
await cp(new URL("../dist/", import.meta.url), target, { recursive: true })
console.log("Management console copied into Go embed assets.")