aboutsummaryrefslogtreecommitdiff
path: root/.scripts/transform.js
diff options
context:
space:
mode:
authorLarsVomMars2024-12-27 17:03:51 +0100
committerLarsVomMars2024-12-27 17:03:51 +0100
commit7f11847ecd0888291c137db3e482e49de0369719 (patch)
treecd8c2a608f832cc036dbc628d1e5877165c3f444 /.scripts/transform.js
parent3f14aaf6da7d2b262aeadc4e99f344d4817f2e00 (diff)
yay
Diffstat (limited to '.scripts/transform.js')
-rw-r--r--.scripts/transform.js8
1 files changed, 3 insertions, 5 deletions
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);
}
});
}