Something went wrong. Try again.
Experiment to rebuild Diffuse using web applets.
Something went wrong. Try again.
379 B · 12 lines
TypeScript
at s3
12345678910111213import { walk } from "jsr:@std/fs@^1.0";
// Copy .d.ts files to dist dirconst it = walk("./src/pages/", { exts: [".d.ts"] });
for await (const item of it) { const target = `dist/${item.path.replace("src/pages/", "")}`; const targetDir = target.split("/").slice(0, -1).join("/");
Deno.mkdirSync(targetDir, { recursive: true }); Deno.copyFileSync(item.path, target);}