Added the ability to replace some placeholders in the screeps code #12

Merged
Philipp merged 7 commits from added-read-replace-git into main 2023-12-25 02:22:44 +01:00
3 changed files with 139 additions and 2 deletions
Showing only changes of commit c5e6ac37fa - Show all commits

View File

@ -54,7 +54,7 @@ async function readReplaceAndWriteFiles(pattern, prefix) {
let processPromise = fs.promises
.readFile(file, "utf8")
.then((content) => {
content = replacePlaceholders(content, replacements);
content = replacePlaceholders(content);
return fs.promises.writeFile(file, content);
});