fix: unflipp order of cpy and emptydir
trickyni trickyniv56@gmail.com
Tue, 19 May 2026 14:38:32 +0300
2 files changed,
1 insertions(+),
2 deletions(-)
M
index.js
→
index.js
@@ -16,8 +16,8 @@ import { emptyDir } from "fs-extra";
import cpy from "cpy"; import { glob } from "glob"; -await cpy(["input/**", "!input/**/*{.md,.jsx}"], "out", { flat: true }); //copies all the assets into out/ emptyDir("out", { recursive: true }); // clears the output folder +await cpy(["input/**", "!input/**/*{.md,.jsx}"], "out", { flat: true }); //copies all the assets into out/ const siteIndex = await createSiteIndex(); export async function kushiyaki(filepath) {
M
insertJSX.js
→
insertJSX.js
@@ -17,7 +17,6 @@ const fn = await import(`./input/templates/${x}.jsx`); //FIX avoid strict filestruct past "input"
tree.children.unshift(fn.default(data, siteIndex)); //TODO use select on "body" } } - if (data.after != undefined) { for (let x of [data.after].flat().reverse()) { const fn = await import(`./input/templates/${x}.jsx`); //FIX avoid strict filestruct past "input"