Skip to content

Commit

Permalink
Update clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
j3lte committed Aug 30, 2024
1 parent 7e575d9 commit 311609e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import updateText from "./utils/update-text.ts";
const README_FILE = import.meta.resolve("../README.md").replace("file://", "");
const readme = await Deno.readTextFile(README_FILE);

let updatedReadMe = updateText("SECTIONS", readme, "\n");
updatedReadMe = updateText("TABLE_OF_CONTENTS", updatedReadMe, "");
updatedReadMe = updateText("STATISTICS", updatedReadMe, "");
updatedReadMe = updateText("UPDATETIME", updatedReadMe, "");
const { updatedText: stage1 } = updateText("SECTIONS", readme, "\n");
const { updatedText: stage2 } = updateText("TABLE_OF_CONTENTS", stage1, "");
const { updatedText: stage3 } = updateText("STATISTICS", stage2, "");
const { updatedText: stageFinal } = updateText("UPDATETIME", stage3, "");

await Deno.writeTextFile(README_FILE, updatedReadMe);
await Deno.writeTextFile(README_FILE, stageFinal);

const iconsFolder = import.meta.resolve("../icons").replace("file://", "");
await emptyDir(iconsFolder);
Expand Down

0 comments on commit 311609e

Please sign in to comment.