From 7f11847ecd0888291c137db3e482e49de0369719 Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Fri, 27 Dec 2024 17:03:51 +0100 Subject: yay --- .scripts/transform.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '.scripts/transform.js') diff --git a/.scripts/transform.js b/.scripts/transform.js index b95c833..139f733 100644 --- a/.scripts/transform.js +++ b/.scripts/transform.js @@ -26,11 +26,9 @@ readdirSync(blogsDir).forEach((blog) => { if (statSync(blogPath).isDirectory()) { readdirSync(blogPath).forEach((blogFile) => { const blogFilePath = join(blogPath, blogFile); - if (statSync(blogFilePath).isFile()) { - if (blogFilePath.toLowerCase().includes("readme")) { - rmSync(blogFilePath); - } - transform(blogFilePath); + if (statSync(blogFilePath).isFile() && blogFilePath !== ".git") { + if (blogFilePath.toLowerCase().includes("readme")) rmSync(blogFilePath); + else transform(blogFilePath); } }); } -- cgit v1.2.3