diff options
author | LarsVomMars | 2024-12-27 13:14:50 +0100 |
---|---|---|
committer | LarsVomMars | 2024-12-27 13:14:50 +0100 |
commit | 3f14aaf6da7d2b262aeadc4e99f344d4817f2e00 (patch) | |
tree | 298591c5f4adfaa11f0d4dd95168c7d6d4c5e8eb /.scripts/transform.js | |
parent | 4ee762b6109566fd96eea4014c9ca4ab3c7aa9c7 (diff) |
huh
Diffstat (limited to '.scripts/transform.js')
-rw-r--r-- | .scripts/transform.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.scripts/transform.js b/.scripts/transform.js index 87a5aec..b95c833 100644 --- a/.scripts/transform.js +++ b/.scripts/transform.js @@ -1,4 +1,4 @@ -import { statSync, readFileSync, writeFileSync, readdirSync } from "fs"; +import { statSync, readFileSync, writeFileSync, readdirSync, rmSync } from "fs"; import { join } from "path"; function transform(filePath) { @@ -27,6 +27,9 @@ readdirSync(blogsDir).forEach((blog) => { readdirSync(blogPath).forEach((blogFile) => { const blogFilePath = join(blogPath, blogFile); if (statSync(blogFilePath).isFile()) { + if (blogFilePath.toLowerCase().includes("readme")) { + rmSync(blogFilePath); + } transform(blogFilePath); } }); |