Experiment to rebuild Diffuse using web applets.
1import { walk } from "jsr:@std/fs@^1.0";
2
3// Copy .d.ts files to dist dir
4const it = walk("./src/pages/", { exts: [".d.ts"] });
5
6for await (const item of it) {
7 const target = `dist/${item.path.replace("src/pages/", "")}`;
8 const targetDir = target.split("/").slice(0, -1).join("/");
9
10 Deno.mkdirSync(targetDir, { recursive: true });
11 Deno.copyFileSync(item.path, target);
12}